Form field name is server_key.
authorJan Schneider <jan@horde.org>
Thu, 8 Jan 2009 14:22:29 +0000 (15:22 +0100)
committerJan Schneider <jan@horde.org>
Thu, 8 Jan 2009 14:23:16 +0000 (15:23 +0100)
imp/js/login.js
imp/js/src/login.js

index 363ed24..27e4afd 100644 (file)
@@ -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
index 1fe4c88..8ee8274 100644 (file)
@@ -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')) {