includes/clientside/static/misc.js
changeset 9 1e61232606d6
parent 1 fe660c52c48f
child 40 723bb7acf914
equal deleted inserted replaced
8:4bb20dddef00 9:1e61232606d6
   340           <input type="hidden" id="ajaxlogin_crypt_challenge" value="' + response.challenge + '" /> \
   340           <input type="hidden" id="ajaxlogin_crypt_challenge" value="' + response.challenge + '" /> \
   341         </form>';
   341         </form>';
   342         ajax_auth_mb_cache.updateContent(form_html);
   342         ajax_auth_mb_cache.updateContent(form_html);
   343         $('messageBox').object.nextSibling.firstChild.tabindex = '3';
   343         $('messageBox').object.nextSibling.firstChild.tabindex = '3';
   344         $('ajaxlogin_user').object.focus();
   344         $('ajaxlogin_user').object.focus();
   345         $('ajaxlogin_pass').object.onblur = function() { $('messageBox').object.nextSibling.firstChild.focus(); };
   345         $('ajaxlogin_pass').object.onblur = function(e) { if ( !shift ) $('messageBox').object.nextSibling.firstChild.focus(); };
       
   346         $('ajaxlogin_pass').object.onkeypress = function(e) { if ( e.keyCode == 13 ) $('messageBox').object.nextSibling.firstChild.click(); };
   346       }
   347       }
   347     });
   348     });
   348 }
   349 }
   349 
   350 
   350 function ajaxValidateLogin()
   351 function ajaxValidateLogin()