indicate required widgets by checkin required-ness setting in the markup
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Jun 2009 21:35:46 +0000 (21:35 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 9 Jun 2009 21:35:46 +0000 (21:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13357 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/ui/default/actor/user/register.js

index 5be8b67..08a8f70 100644 (file)
@@ -225,17 +225,22 @@ function fleshFMRow(row, fmcls, args) {
             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;