includes/clientside/static/acl.js
changeset 345 4ccdfeee9a11
parent 336 bfa2e9c23f03
child 377 bb3e6c3bd4f4
--- a/includes/clientside/static/acl.js	Mon Dec 31 21:43:51 2007 -0500
+++ b/includes/clientside/static/acl.js	Thu Jan 03 00:53:33 2008 -0500
@@ -363,18 +363,26 @@
                   {
                     vars['FIELD_DESC'] = data.acl_descs[i];
                   }
+                  vars['FIELD_INHERIT_CHECKED'] = '';
                   vars['FIELD_DENY_CHECKED'] = '';
                   vars['FIELD_DISALLOW_CHECKED'] = '';
                   vars['FIELD_WIKIMODE_CHECKED'] = '';
                   vars['FIELD_ALLOW_CHECKED'] = '';
                   vars['FIELD_NAME'] = i;
+                  if ( !data.current_perms[i] )
+                  {
+                    data.current_perms[i] = 'i';
+                  }
                   switch(data.current_perms[i])
                   {
+                    case 'i':
+                    default:
+                      vars['FIELD_INHERIT_CHECKED'] = 'checked="checked"';
+                      break;
                     case 1:
                       vars['FIELD_DENY_CHECKED'] = 'checked="checked"';
                       break;
                     case 2:
-                    default:
                       vars['FIELD_DISALLOW_CHECKED'] = 'checked="checked"';
                       break;
                     case 3: