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 <abowling@emeralddata.net>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
names.push(key);
}
- osDrawNames(names);
+ if(dojo.byId('isFiltered') == 'true') {
+ osLimitSeen(dojo.byId('searchBox').value);
+ } else {
+ osDrawNames(names);
+ }
}
/**
function osSearchChange() {
if(osCurrentSearchTimeout != null)
clearTimeout(osCurrentSearchTimeout);
-
+
+ dojo.byId('isFiltered').value = 'true';
osCurrentSearchTimeout = setTimeout("doSearch()", 500);
}
}
function clearSearch() {
+ dojo.byId('isFiltered').value = 'false';
if(dojo.byId('searchBox').value != '') { // Don't refresh on blank.
dojo.byId('searchBox').value = '';
doSearch();
<form id='searchform' onSubmit='return doSearch()'>
<input type='text' dojoType='dijit.form.TextBox' id='searchBox' onkeypress='osSearchChange();' />
+ <input type='hidden' dojoType='dijit.form.TextBox' id='isFiltered' value='false' />
<button type='submit' dojoType='dijit.form.Button'>&staff.server.admin.org_unit_settings.filter;</button>
<button dojoType='dijit.form.Button' onClick='clearSearch();'>&staff.server.admin.org_unit_settings.clear_filter;</button>
</form>