|
|
|
@ -20,8 +20,15 @@
@@ -20,8 +20,15 @@
|
|
|
|
|
url: '/login', |
|
|
|
|
method: 'post', |
|
|
|
|
data: $('loginform').toQueryString(), |
|
|
|
|
onFailure: function() { |
|
|
|
|
alert("_(Unable to log in, qBittorrent is probably unreachable.)"); |
|
|
|
|
onComplete: function() { |
|
|
|
|
$('password').set('value', ''); |
|
|
|
|
}, |
|
|
|
|
onFailure: function(xhr) { |
|
|
|
|
if (xhr.responseText != "") { |
|
|
|
|
$('error_msg').set('html', xhr.responseText); |
|
|
|
|
} else { |
|
|
|
|
$('error_msg').set('html', '_(Unable to log in, qBittorrent is probably unreachable.)'); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onSuccess: function(text) { |
|
|
|
|
if (text == "Ok.") { |
|
|
|
@ -61,7 +68,7 @@
@@ -61,7 +68,7 @@
|
|
|
|
|
<div id="main"> |
|
|
|
|
<h1>_(qBittorrent web User Interface)</h1> |
|
|
|
|
<div id="logo" class="col"> |
|
|
|
|
<img src="images/skin/mascot.png" /> |
|
|
|
|
<img src="images/qbittorrent.png" /> |
|
|
|
|
</div> |
|
|
|
|
<div id="formplace" class="col"> |
|
|
|
|
<form id="loginform" action=""> |
|
|
|
|