From b45d350c1edd21a7819e5f323337c7e3867a58f5 Mon Sep 17 00:00:00 2001 From: Adam Bowling Date: Thu, 22 Jan 2015 11:20:28 -0500 Subject: [PATCH] LP#1244547 Maintain Filter Settings on Library Settings Editor After applying a filter to the rows on the Library Settings Editor, and then selecting a different OU, the filter settings are not considered unless the user clicks the "Filter" button once again. This patch maintains the filter settings on the edior until the user clicks the "Clear Filter" button. Signed-off-by: Adam Bowling Signed-off-by: Remington Steed Signed-off-by: Galen Charlton --- Open-ILS/xul/staff_client/server/admin/org_unit_settings.js | 10 ++++++++-- Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js index 92bf2ea83d..20bfff2d78 100644 --- a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js +++ b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.js @@ -133,7 +133,11 @@ function osDraw(specific_setting) { names.push(key); } - osDrawNames(names); + if(dojo.byId('isFiltered') == 'true') { + osLimitSeen(dojo.byId('searchBox').value); + } else { + osDrawNames(names); + } } /** @@ -143,7 +147,8 @@ var osCurrentSearchTimeout; function osSearchChange() { if(osCurrentSearchTimeout != null) clearTimeout(osCurrentSearchTimeout); - + + dojo.byId('isFiltered').value = 'true'; osCurrentSearchTimeout = setTimeout("doSearch()", 500); } @@ -193,6 +198,7 @@ function doSearch() { } function clearSearch() { + dojo.byId('isFiltered').value = 'false'; if(dojo.byId('searchBox').value != '') { // Don't refresh on blank. dojo.byId('searchBox').value = ''; doSearch(); diff --git a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml index 662bde0151..da3f4ae032 100644 --- a/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml +++ b/Open-ILS/xul/staff_client/server/admin/org_unit_settings.xhtml @@ -85,6 +85,7 @@
+
-- 2.11.0