includes/clientside/static/login.js
changeset 1077 7f621a3a9cbf
parent 1076 9c364fded738
child 1098 be6cfe79128c
equal deleted inserted replaced
1076:9c364fded738 1077:7f621a3a9cbf
    96 /**
    96 /**
    97  * Switch to decide if DiffieHellman shows a "browser incompatible" error
    97  * Switch to decide if DiffieHellman shows a "browser incompatible" error
    98  * @var bool
    98  * @var bool
    99  */
    99  */
   100 
   100 
   101 var ajax_login_prevent_dh = IE || ( is_iPhone && !is_iPhone_3 );
   101 var ajax_login_prevent_dh = ( IE && !IE_8 ) || ( is_iPhone && !is_iPhone_3 );
   102 
   102 
   103 /**
   103 /**
   104  * Performs the AJAX request to get an encryption key and from there spawns the login form.
   104  * Performs the AJAX request to get an encryption key and from there spawns the login form.
   105  * @param function The function that will be called once authentication completes successfully.
   105  * @param function The function that will be called once authentication completes successfully.
   106  * @param int The security level to authenticate at - see http://docs.enanocms.org/Help:Appendix_B
   106  * @param int The security level to authenticate at - see http://docs.enanocms.org/Help:Appendix_B
   339       
   339       
   340       // The circly ball ajaxy image + status message
   340       // The circly ball ajaxy image + status message
   341       var detail_msg = $lang.get('user_login_ajax_err_crypto_details');
   341       var detail_msg = $lang.get('user_login_ajax_err_crypto_details');
   342       var full_link = $lang.get('user_login_ajax_err_crypto_link');
   342       var full_link = $lang.get('user_login_ajax_err_crypto_link');
   343       var link = document.createElement('a');
   343       var link = document.createElement('a');
   344       link.href = makeUrlNS('Special', 'Login/' + title);
   344       link.href = makeUrlNS('Special', 'Login/' + title, 'level=' + logindata.user_level, true);
   345       link.appendChild(document.createTextNode(full_link));
   345       link.appendChild(document.createTextNode(full_link));
   346       var span = document.createElement('span');
   346       var span = document.createElement('span');
   347       span.style.fontSize = 'smaller';
   347       span.style.fontSize = 'smaller';
   348       
   348       
   349       // Insert the message
   349       // Insert the message