[open-ils-commits] r10808 - trunk/Open-ILS/web/js/dojo/openils
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Oct 9 11:57:14 EDT 2008
Author: erickson
Date: 2008-10-09 11:57:11 -0400 (Thu, 09 Oct 2008)
New Revision: 10808
Modified:
trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js
Log:
handle the lack of non-existent settings. if settings already loaded, use those
Modified: trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js 2008-10-09 15:56:30 UTC (rev 10807)
+++ trunk/Open-ILS/web/js/dojo/openils/GridColumnPicker.js 2008-10-09 15:57:11 UTC (rev 10808)
@@ -200,6 +200,8 @@
},
load : function() {
+ if(this.setting)
+ return this._loadColsFromSetting(this.setting);
var picker = this;
fieldmapper.standardRequest(
['open-ils.actor', 'open-ils.actor.patron.settings.retrieve'],
@@ -209,8 +211,13 @@
var set = r.recv().content();
if(e = openils.Event.parse(set))
return alert(e)
- if(set)
+ if(set) {
picker._loadColsFromSetting(set);
+ } else {
+ picker.build();
+ picker.grid.setStructure(picker.structure);
+ picker.grid.update();
+ }
}
}
);
More information about the open-ils-commits
mailing list