[open-ils-commits] r13357 - trunk/Open-ILS/web/js/ui/default/actor/user (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Jun 9 17:35:51 EDT 2009
Author: erickson
Date: 2009-06-09 17:35:46 -0400 (Tue, 09 Jun 2009)
New Revision: 13357
Modified:
trunk/Open-ILS/web/js/ui/default/actor/user/register.js
Log:
indicate required widgets by checkin required-ness setting in the markup
Modified: trunk/Open-ILS/web/js/ui/default/actor/user/register.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-06-09 21:35:09 UTC (rev 13356)
+++ trunk/Open-ILS/web/js/ui/default/actor/user/register.js 2009-06-09 21:35:46 UTC (rev 13357)
@@ -225,17 +225,22 @@
break;
}
+ var required = row.getAttribute('required') == 'required';
var widget = new openils.widget.AutoFieldWidget({
idlField : fieldIdl,
fmObject : fmObject,
fmClass : fmcls,
parentNode : span,
widgetClass : wclass,
- dijitArgs : {style: wstyle},
+ dijitArgs : {
+ style: wstyle,
+ required : required
+ },
orgLimitPerms : ['UPDATE_USER'],
});
widget.build();
+
widget._wtype = fmcls;
widget._fmfield = fmfield;
widget._addr = args.addr;
More information about the open-ils-commits
mailing list