Patch from Bill Ott to clear the advanced search form prior to populating with cached...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Jul 2009 13:41:47 +0000 (13:41 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 23 Jul 2009 13:41:47 +0000 (13:41 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13705 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/skin/default/js/adv_global.js

index a8a0a14..2077845 100644 (file)
@@ -121,6 +121,10 @@ function initSearchBoxes() {
 
     var types = getObjectKeys(search.searches);
 
+    // if we have browser cached data, clear it before populating from cookie
+    if (search.searches[types[0]].term)
+        clearSearchBoxes();
+
     /* pre-add the needed rows */
     while($('adv_global_tbody').getElementsByTagName('tr').length - 1 < types.length)
         advAddGblRow();