From: erickson Date: Thu, 5 Aug 2010 20:19:47 +0000 (+0000) Subject: honoring IDL 'required' attr for autofieldwidget for styling X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9b9e9b37f935ba539c724d1f9345ef0eba5fb509;p=evergreen%2Fbjwebb.git honoring IDL 'required' attr for autofieldwidget for styling git-svn-id: svn://svn.open-ils.org/ILS/trunk@17105 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 57d9cc28b..b033f498e 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -515,7 +515,7 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { 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