Skip to content

Commit 70657e3

Browse files
committed
Remove unused 'login' command
1 parent f8b6493 commit 70657e3

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

program/js/app.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ function rcube_webmail()
613613
break;
614614

615615
case 'login':
616-
var tz, tz_name, jstz = window.jstz,
616+
var tz, tz_name,
617617
input_user = $('#rcmloginuser'),
618618
input_tz = $('#rcmlogintz');
619619

@@ -625,7 +625,7 @@ function rcube_webmail()
625625
$('#rcmloginpwd').focus();
626626

627627
// detect client timezone
628-
if (jstz && (tz = jstz.determine()))
628+
if (window.jstz && (tz = jstz.determine()))
629629
tz_name = tz.name();
630630

631631
input_tz.val(tz_name ? tz_name : (new Date().getStdTimezoneOffset() / -60));
@@ -637,7 +637,6 @@ function rcube_webmail()
637637
ref.display_message('', 'loading');
638638
});
639639

640-
this.enable_command('login', true);
641640
break;
642641
}
643642

@@ -801,11 +800,6 @@ function rcube_webmail()
801800
// process internal command
802801
switch (command) {
803802

804-
case 'login':
805-
if (this.gui_objects.loginform)
806-
this.gui_objects.loginform.submit();
807-
break;
808-
809803
// commands to switch task
810804
case 'logout':
811805
case 'mail':

0 commit comments

Comments
 (0)