From f02cc216eeb918d1369693cdbfedd105e22dd5e4 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Fri, 13 Apr 2007 01:10:21 +0000 Subject: [PATCH] Added hitcount after resource name --- www/masterkey/js/client.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/www/masterkey/js/client.js b/www/masterkey/js/client.js index 6999a6e..8b46f49 100644 --- a/www/masterkey/js/client.js +++ b/www/masterkey/js/client.js @@ -1,5 +1,5 @@ /* -** $Id: client.js,v 1.11 2007-04-03 14:27:21 jakub Exp $ +** $Id: client.js,v 1.12 2007-04-13 01:10:21 quinn Exp $ ** MasterKey - pazpar2's javascript client . */ @@ -161,8 +161,7 @@ function my_onterm(data) for(var i = 0; i < data[key].length; i++) { if (key == "xtargets"){ - var listItem = $(''+data[key][i].name - /*+' ('+data[key][i].freq+')'*/+''); + var listItem = $(''+data[key][i].name +' ('+data[key][i].freq+')'+''); listItem.click(function(){ refine(this.name, this.attributes[0].nodeValue, this.firstChild.nodeValue) }); listItem.appendTo(listEntries); @@ -187,8 +186,7 @@ function my_onterm(data) for(var i = 0; i < data[key].length; i++){ if (key == "xtargets"){ - var listItem = $(''+data[key][i].name - /*+' ('+data[key][i].freq+')'*/+'').click(function(){ + var listItem = $(''+data[key][i].name+' ('+data[key][i].freq+')'+'').click(function(){ refine(this.name, this.attributes[0].nodeValue, this.firstChild.nodeValue) }); listItem.appendTo(listEntries); } else { -- 1.7.10.4