From c41fea80a2032d986b8b86b48aad299cb38a3c77 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 23 Jul 2009 13:42:10 +0000 Subject: [PATCH] Patch from Bill Ott to clear the advanced search form prior to populating with cached search data to prevent doubling of search rows git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6_0@13707 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/opac/skin/default/js/adv_global.js | 4 ++++ 1 file changed, 4 insertions(+) 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 a8a0a1413d..2077845601 100644 --- a/Open-ILS/web/opac/skin/default/js/adv_global.js +++ b/Open-ILS/web/opac/skin/default/js/adv_global.js @@ -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(); -- 2.11.0