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

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Apr 16 17:09:03 EDT 2010


Author: erickson
Date: 2010-04-16 17:08:57 -0400 (Fri, 16 Apr 2010)
New Revision: 16260

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
don't attempt to validate a readOnly widget

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2010-04-16 20:04:56 UTC (rev 16259)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2010-04-16 21:08:57 UTC (rev 16260)
@@ -502,7 +502,7 @@
             if(this.onload)
                 this.onload(this.widget, this);
 
-            if(this.dijitArgs && this.dijitArgs.required) {
+            if(!this.readOnly && this.dijitArgs && this.dijitArgs.required) {
                 // a required dijit is not given any styling to indicate the value
                 // is invalid until the user has focused the widget then left it with
                 // invalid data.  This change tells dojo to pretend this focusing has 



More information about the open-ils-commits mailing list