From e06b1fdda64f4deb692f5463443f828004df83ad Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 8 Jan 2009 15:22:29 +0100 Subject: [PATCH] Form field name is server_key. --- imp/js/login.js | 2 +- imp/js/src/login.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/imp/js/login.js b/imp/js/login.js index 363ed2405..27e4afd8f 100644 --- a/imp/js/login.js +++ b/imp/js/login.js @@ -1 +1 @@ -function setFocus(){if(!$F("imapuser")){$("imapuser").focus()}else{$("pass").focus()}}function imp_reload(){window.top.document.location=autologin_url+$F("server_key")}function submit_login(){if(show_list&&$F("server").startsWith("_")){return false}if(!$F("imapuser")){alert(IMP.text.login_username);$("imapuser").focus();return false}else{if(!$F("pass")){alert(IMP.text.login_password);$("pass").focus();return false}else{$("loginButton").disable();if(ie_clientcaps){try{$("ie_version").setValue(objCCaps.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid"))}catch(a){}}$("imp_login").submit();return true}}}function selectLang(){if(!$F("imapuser")&&!$F("pass")){var a={new_lang:$F("new_lang")};if(lang_url!==null){a.url=lang_url}self.location="login.php?"+Object.toQueryString(a)}}function removeHash(a){return(Object.isString(a)&&a.startsWith("#"))?a.substring(1):a}document.observe("dom:loaded",function(){if(imp_auth){if(parent.frames.horde_main){if(nomenu){parent.location=self.location}else{document.imp_login.target="_parent"}}}if(location.hash){$("anchor_string").setValue(removeHash(location.hash))}}); \ No newline at end of file +function setFocus(){if(!$F("imapuser")){$("imapuser").focus()}else{$("pass").focus()}}function imp_reload(){window.top.document.location=autologin_url+$F("server_key")}function submit_login(){if(show_list&&$F("server_key").startsWith("_")){return false}if(!$F("imapuser")){alert(IMP.text.login_username);$("imapuser").focus();return false}else{if(!$F("pass")){alert(IMP.text.login_password);$("pass").focus();return false}else{$("loginButton").disable();if(ie_clientcaps){try{$("ie_version").setValue(objCCaps.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid"))}catch(A){}}$("imp_login").submit();return true}}}function selectLang(){if(!$F("imapuser")&&!$F("pass")){var A={new_lang:$F("new_lang")};if(lang_url!==null){A.url=lang_url}self.location="login.php?"+Object.toQueryString(A)}}function removeHash(A){return(Object.isString(A)&&A.startsWith("#"))?A.substring(1):A}document.observe("dom:loaded",function(){if(imp_auth){if(parent.frames.horde_main){if(nomenu){parent.location=self.location}else{document.imp_login.target="_parent"}}}if(location.hash){$("anchor_string").setValue(removeHash(location.hash))}}); \ No newline at end of file diff --git a/imp/js/src/login.js b/imp/js/src/login.js index 1fe4c88f5..8ee82746e 100644 --- a/imp/js/src/login.js +++ b/imp/js/src/login.js @@ -21,7 +21,7 @@ function imp_reload() function submit_login() { - if (show_list && $F('server').startsWith("_")) { + if (show_list && $F('server_key').startsWith('_')) { return false; } if (!$F('imapuser')) { -- 2.11.0