[open-ils-commits] r12185 - in trunk/Open-ILS/web/js: dojo/openils/widget ui/default/conify/global/config (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Feb 15 11:41:24 EST 2009
Author: erickson
Date: 2009-02-15 11:41:22 -0500 (Sun, 15 Feb 2009)
New Revision: 12185
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
trunk/Open-ILS/web/js/ui/default/conify/global/config/idl_field_doc.js
Log:
added store reset func
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-02-15 16:39:19 UTC (rev 12184)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoGrid.js 2009-02-15 16:41:22 UTC (rev 12185)
@@ -169,6 +169,10 @@
dialog.startup();
dialog.show();
},
+
+ resetStore : function() {
+ this.setStore(this.buildAutoStore());
+ },
loadAll : function(opts, search) {
dojo.require('openils.PermaCrud');
Modified: trunk/Open-ILS/web/js/ui/default/conify/global/config/idl_field_doc.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/conify/global/config/idl_field_doc.js 2009-02-15 16:39:19 UTC (rev 12184)
+++ trunk/Open-ILS/web/js/ui/default/conify/global/config/idl_field_doc.js 2009-02-15 16:41:22 UTC (rev 12185)
@@ -39,6 +39,7 @@
fmClassSelector.startup();
dojo.connect(fmClassSelector, 'onChange',
function() {
+ fdocGrid.resetStore();
fdocGrid.loadAll({order_by:{fdoc : 'field'}}, {fm_class: this.attr('value')});
}
);
More information about the open-ils-commits
mailing list