[open-ils-commits] r9713 - in branches/acq-experiment/Open-ILS/web:
js/dojo/openils js/dojo/openils/acq
oilsweb/oilsweb/templates/oils/default/common
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 27 22:13:45 EDT 2008
Author: djfiander
Date: 2008-05-27 22:13:44 -0400 (Tue, 27 May 2008)
New Revision: 9713
Modified:
branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js
branches/acq-experiment/Open-ILS/web/js/dojo/openils/editors.js
branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html
Log:
Can now edit owning lib of acqlids
Modified: branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js 2008-05-28 01:52:18 UTC (rev 9712)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/acq/Lineitems.js 2008-05-28 02:13:44 UTC (rev 9713)
@@ -100,6 +100,8 @@
if (attr == "fund") {
item.fund(newVal);
+ } else if (attr == "owning_lib") {
+ item.owning_lib(newVal);
} else {
alert("Unexpected attr in Lineitems.alertOnSet: '"+attr+"'");
return;
Modified: branches/acq-experiment/Open-ILS/web/js/dojo/openils/editors.js
===================================================================
--- branches/acq-experiment/Open-ILS/web/js/dojo/openils/editors.js 2008-05-28 01:52:18 UTC (rev 9712)
+++ branches/acq-experiment/Open-ILS/web/js/dojo/openils/editors.js 2008-05-28 02:13:44 UTC (rev 9713)
@@ -7,6 +7,9 @@
dojo.require("dijit.form.NumberSpinner");
dojo.require('dijit.form.FilteringSelect');
+dojo.require("openils.widget.FundSelector");
+dojo.require("openils.widget.OrgUnitFilteringSelect");
+
dojo.declare("openils.editors.NumberSpinner", dojox.grid.editors.Dijit, {
editorClass: "dijit.form.NumberSpinner",
@@ -35,4 +38,15 @@
},
});
+dojo.declare('openils.editors.OrgUnitSelectEditor', dojox.grid.editors.Dijit, {
+ editorClass: "openils.widget.OrgUnitFilteringSelect",
+ createEditor: function(inNode, inDatum, inRowIndex) {
+ var editor = new this.editorClass(this.getEditorProps(inDatum), inNode);
+ globalUser.buildPermOrgSelector(this.cell.perm || this.perm,
+ editor);
+ editor.setValue(inDatum);
+ return editor;
+ },
+});
+
}
Modified: branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html
===================================================================
--- branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html 2008-05-28 01:52:18 UTC (rev 9712)
+++ branches/acq-experiment/Open-ILS/web/oilsweb/oilsweb/templates/oils/default/common/jubgrid.html 2008-05-28 02:13:44 UTC (rev 9713)
@@ -64,7 +64,10 @@
get:JUBGrid.getLIDFundName,
editor: openils.editors.FundSelectEditor,
},
- {name:"Location", field:"location", get:JUBGrid.getLIDLibName}
+ {name:"Branch", field:"owning_lib",
+ get:JUBGrid.getLIDLibName,
+ editor: openils.editors.OrgUnitSelectEditor
+ },
]]
}];
More information about the open-ils-commits
mailing list