[open-ils-commits] r17105 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Aug 5 16:19:52 EDT 2010
Author: erickson
Date: 2010-08-05 16:19:47 -0400 (Thu, 05 Aug 2010)
New Revision: 17105
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
honoring IDL 'required' attr for autofieldwidget for styling
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-08-05 20:19:46 UTC (rev 17104)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2010-08-05 20:19:47 UTC (rev 17105)
@@ -515,7 +515,7 @@
if(this.onload)
this.onload(this.widget, this);
- if(!this.readOnly && this.dijitArgs && this.dijitArgs.required) {
+ if(!this.readOnly && (this.idlField.required || (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