Otherwise, within "General Search", we'll get this error:
TypeError: openils.XUL.localStorage is not a function from vlagent.js:6
FIXME: brittle workaround?
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
dojo.require('openils.XUL');
dojo.require('dojox.form.CheckedMultiSelect');
-var xulStorage = openils.XUL.localStorage();
+var xulStorage;
var storekey = 'eg.acq.upload.';
var osetkey = 'acq.upload.default.';
var persistOrgSettings;
this.init = function(oncomplete) {
var self = this;
+ xulStorage = openils.XUL.localStorage();
+
// load org unit persist setting values
fieldmapper.standardRequest(
['open-ils.actor','open-ils.actor.ou_setting.ancestor_default.batch'],