From 9b9e9b37f935ba539c724d1f9345ef0eba5fb509 Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 5 Aug 2010 20:19:47 +0000 Subject: [PATCH] honoring IDL 'required' attr for autofieldwidget for styling git-svn-id: svn://svn.open-ils.org/ILS/trunk@17105 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 2 +- 1 file changed, 1 insertion(+), 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 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 -- 2.11.0