From ca04150a46c9b5d050a5e0539d7e0870fa6c5c74 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 2 Aug 2006 21:05:29 +0000 Subject: [PATCH] ooops. duplicate var i git-svn-id: svn://svn.open-ils.org/ILS/trunk@5233 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/adv_global.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/opac/skin/default/js/adv_global.js b/Open-ILS/web/opac/skin/default/js/adv_global.js index 8f3dd50b7a..767a3f101b 100644 --- a/Open-ILS/web/opac/skin/default/js/adv_global.js +++ b/Open-ILS/web/opac/skin/default/js/adv_global.js @@ -138,10 +138,13 @@ function advBuildSearchBlob() { if(!term) continue; var string = ""; + if(!searches) searches = {}; + if(searches[stype]) string = searches[stype].term; - else searches[stype] = {}; + else + searches[stype] = { term : "" }; switch(contains) { case 'contains' : @@ -150,8 +153,8 @@ function advBuildSearchBlob() { case 'nocontains' : { var words = term.split(" "); - for( var i in words ) - string += " -" + words[i]; + for( var j in words ) + string += " -" + words[j]; } break; -- 2.11.0