From 9f9c996469bb103981d8eb6d3a1290d2228d9830 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 18 Dec 2009 21:29:40 +0000 Subject: [PATCH] only set the value on a pre-defined widget when no value has been provided 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index cee986264c..9877ffbaf9 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -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; } -- 2.43.2