[open-ils-commits] r8045 - in trunk/Open-ILS/web/opac/skin/default:
js xml/result
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 8 18:56:12 EST 2007
Author: erickson
Date: 2007-11-08 18:40:17 -0500 (Thu, 08 Nov 2007)
New Revision: 8045
Modified:
trunk/Open-ILS/web/opac/skin/default/js/search_bar.js
trunk/Open-ILS/web/opac/skin/default/xml/result/filtersort.xml
Log:
added auto-search-re-firing on limit and sort change; repaired node ID bug
Modified: trunk/Open-ILS/web/opac/skin/default/js/search_bar.js
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/js/search_bar.js 2007-11-08 15:37:27 UTC (rev 8044)
+++ trunk/Open-ILS/web/opac/skin/default/js/search_bar.js 2007-11-08 23:40:17 UTC (rev 8045)
@@ -43,9 +43,8 @@
if( (limit = $('opac.result.limit2avail')) ) {
if(getAvail()) limit.checked = true;
- s = getSort()+'.'+getSortDir();
- if(s.length > 1)
- setSelector($('opac.result.filters'), s);
+ if(getSort() && getSortDir())
+ setSelector($('opac.result.sort'), getSort()+'.'+getSortDir());
}
}
@@ -76,7 +75,7 @@
if($('opac.result.limit2avail')) {
args[PARAM_AVAIL] = ($('opac.result.limit2avail').checked) ? 1 : '';
- if( (val = getSelectorVal($('opac.result.filters'))) ) {
+ if( (val = getSelectorVal($('opac.result.sort'))) ) {
args[PARAM_SORT] = val.split('.')[0]
args[PARAM_SORT_DIR] = val.split('.')[1]
}
Modified: trunk/Open-ILS/web/opac/skin/default/xml/result/filtersort.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/result/filtersort.xml 2007-11-08 15:37:27 UTC (rev 8044)
+++ trunk/Open-ILS/web/opac/skin/default/xml/result/filtersort.xml 2007-11-08 23:40:17 UTC (rev 8045)
@@ -1,6 +1,6 @@
<span>
- &result.limit2avail;<input type='checkbox' id='opac.result.limit2avail'/>
- <select id='opac.result.sort'>
+ &result.limit2avail;<input type='checkbox' id='opac.result.limit2avail' onclick='searchBarSubmit();'/>
+ <select id='opac.result.sort' onchange='searchBarSubmit();'>
<option selelted='selected' value=''>&result.sort_by;</option>
<optgroup label='&common.title;'>
<option id='opac.result.title.a2z' label='&common.a2z;' value='title.asc'>&common.a2z;</option>
More information about the open-ils-commits
mailing list