only set the value on a pre-defined widget when no value has been provided
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Dec 2009 21:29:40 +0000 (21:29 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Dec 2009 21:29:40 +0000 (21:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@15200 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js

index cee9862..9877ffb 100644 (file)
@@ -146,7 +146,8 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) {
                 // core widget provided for us, attach and move on
                 if(this.parentNode) // may already be in the "right" place
                     this.parentNode.appendChild(this.widget.domNode);
-                this._widgetLoaded();
+                if(this.widget.attr('value') == null)
+                    this._widgetLoaded();
                 return;
             }