# HG changeset patch # User Dan # Date 1249654929 14400 # Node ID 9c364fded7388cb48bd85db6de8247225e148e7a # Parent f4b89aa4226d4230cc83983494393f970e018725 Login: visual: fixed separator being displayed with only one of 2 checkboxes diff -r f4b89aa4226d -r 9c364fded738 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';