[open-ils-commits] r13085 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed May 6 10:33:35 EDT 2009


Author: erickson
Date: 2009-05-06 10:33:33 -0400 (Wed, 06 May 2009)
New Revision: 13085

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
in RO mode, don't bother loading the linked display field if the widget value is null

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2009-05-05 20:50:02 UTC (rev 13084)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2009-05-06 14:33:33 UTC (rev 13085)
@@ -118,7 +118,8 @@
             if(this.readOnly) {
                 dojo.require('dijit.layout.ContentPane');
                 this.widget = new dijit.layout.ContentPane(this.dijitArgs, this.parentNode);
-                this._tryLinkedDisplayField();
+                if(this.widgetValue !== null)
+                    this._tryLinkedDisplayField();
 
             } else if(this.widgetClass) {
                 dojo.require(this.widgetClass);



More information about the open-ils-commits mailing list