[open-ils-commits] r11582 - in trunk/Open-ILS/web: js/ui/default/acq/picklist templates/default/acq/picklist
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 15 15:16:38 EST 2008
Author: erickson
Date: 2008-12-15 15:16:34 -0500 (Mon, 15 Dec 2008)
New Revision: 11582
Modified:
trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js
trunk/Open-ILS/web/templates/default/acq/picklist/bib_search.tt2
Log:
added clear form button to bib search
Modified: trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js 2008-12-15 19:38:03 UTC (rev 11581)
+++ trunk/Open-ILS/web/js/ui/default/acq/picklist/bib_search.js 2008-12-15 20:16:34 UTC (rev 11582)
@@ -69,6 +69,13 @@
}
}
+function clearSearchForm() {
+ for(var f in searchFields) {
+ var field = searchFields[f];
+ dijit.byId('text_input_'+field.name).setValue('');
+ }
+}
+
function doSearch(values) {
dojo.style('searchProgress', 'visibility', 'visible');
searchProgress.update({progress: 0});
Modified: trunk/Open-ILS/web/templates/default/acq/picklist/bib_search.tt2
===================================================================
--- trunk/Open-ILS/web/templates/default/acq/picklist/bib_search.tt2 2008-12-15 19:38:03 UTC (rev 11581)
+++ trunk/Open-ILS/web/templates/default/acq/picklist/bib_search.tt2 2008-12-15 20:16:34 UTC (rev 11582)
@@ -47,6 +47,8 @@
</table>
<div id='oils-acq-search-fields-submit-block'>
<div dojoType='dijit.form.Button' type='submit'>Submit</div>
+
+ <div dojoType='dijit.form.Button' onclick='clearSearchForm()'>Clear Form</div>
</div>
</div>
</form>
More information about the open-ils-commits
mailing list