mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Resolve JavaScript errors
This commit is contained in:
parent
a4f99995bb
commit
c2a195360a
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
$('username').focus();
|
$('username').focus();
|
||||||
$('username').select();
|
$('username').select();
|
||||||
}
|
};
|
||||||
|
|
||||||
window.addEvent('domready', function() {
|
window.addEvent('domready', function() {
|
||||||
$('loginform').addEvent('submit', function(e) {
|
$('loginform').addEvent('submit', function(e) {
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
$('password').set('value', '');
|
$('password').set('value', '');
|
||||||
},
|
},
|
||||||
onFailure: function(xhr) {
|
onFailure: function(xhr) {
|
||||||
if (xhr.responseText != "") {
|
if (xhr.responseText !== "") {
|
||||||
$('error_msg').set('html', xhr.responseText);
|
$('error_msg').set('html', xhr.responseText);
|
||||||
} else {
|
} else {
|
||||||
$('error_msg').set('html', 'QBT_TR(Unable to log in, qBittorrent is probably unreachable.)QBT_TR[CONTEXT=HttpServer]');
|
$('error_msg').set('html', 'QBT_TR(Unable to log in, qBittorrent is probably unreachable.)QBT_TR[CONTEXT=HttpServer]');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue