[open-ils-commits] r13706 - branches/rel_1_6/Open-ILS/web/opac/skin/default/js (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 23 09:42:03 EDT 2009
Author: erickson
Date: 2009-07-23 09:42:01 -0400 (Thu, 23 Jul 2009)
New Revision: 13706
Modified:
branches/rel_1_6/Open-ILS/web/opac/skin/default/js/adv_global.js
Log:
Patch from Bill Ott to clear the advanced search form prior to populating with cached search data to prevent doubling of search rows
Modified: branches/rel_1_6/Open-ILS/web/opac/skin/default/js/adv_global.js
===================================================================
--- branches/rel_1_6/Open-ILS/web/opac/skin/default/js/adv_global.js 2009-07-23 13:41:47 UTC (rev 13705)
+++ branches/rel_1_6/Open-ILS/web/opac/skin/default/js/adv_global.js 2009-07-23 13:42:01 UTC (rev 13706)
@@ -121,6 +121,10 @@
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();
More information about the open-ils-commits
mailing list