[open-ils-commits] r11795 - trunk/Open-ILS/web/js/dojo/openils/widget
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jan 12 11:02:54 EST 2009
Author: erickson
Date: 2009-01-12 11:02:52 -0500 (Mon, 12 Jan 2009)
New Revision: 11795
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js
Log:
disable editing of ID fields
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js 2009-01-12 16:02:02 UTC (rev 11794)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js 2009-01-12 16:02:52 UTC (rev 11795)
@@ -41,6 +41,12 @@
this.widgetValue = (this.fmObject) ? this.fmObject[this.idlField.name]() : null;
switch(this.idlField.datatype) {
+
+ case 'id':
+ dojo.require('dijit.form.TextBox');
+ this.widget = new dijit.form.TextBox(this.dijitArgs, this.parentNode);
+ this.widget.setDisabled(true); // never allow editing of IDs
+ break;
case 'org_unit':
this._buildOrgSelector();
More information about the open-ils-commits
mailing list