From: erickson Date: Wed, 6 May 2009 14:33:33 +0000 (+0000) Subject: in RO mode, don't bother loading the linked display field if the widget value is... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ad7e4a523ed5bd0c183841255436fb09871c674d;p=Evergreen.git in RO mode, don't bother loading the linked display field if the widget value is null git-svn-id: svn://svn.open-ils.org/ILS/trunk@13085 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 5d1c857a30..e167a2c524 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -118,7 +118,8 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { 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);