Login: visual: fixed separator being displayed with only one of 2 checkboxes
authorDan
Fri, 07 Aug 2009 10:22:09 -0400
changeset 1076 9c364fded738
parent 1075 f4b89aa4226d
child 1077 7f621a3a9cbf
Login: visual: fixed separator being displayed with only one of 2 checkboxes
includes/clientside/static/login.js
--- a/includes/clientside/static/login.js	Tue Aug 04 17:32:09 2009 -0400
+++ b/includes/clientside/static/login.js	Fri Aug 07 10:22:09 2009 -0400
@@ -686,7 +686,10 @@
   // Field: enable Diffie Hellman
   if ( ajax_login_prevent_dh )
   {
-    boxen.appendChild(bullet);
+    if ( logindata.user_level <= USER_LEVEL_MEMBER )
+      // only show this if both checkboxes are visible
+      boxen.appendChild(bullet);
+      
     var lbl_dh = document.createElement('span');
     lbl_dh.style.fontSize = 'smaller';
     lbl_dh.style.textAlign = 'center';
@@ -703,7 +706,9 @@
   }
   else
   {
-    boxen.appendChild(bullet);
+    if ( logindata.user_level <= USER_LEVEL_MEMBER )
+      // only show this if both checkboxes are visible
+      boxen.appendChild(bullet);
     
     var lbl_dh = document.createElement('label');
     lbl_dh.style.fontSize = 'smaller';