mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Web UI: Fix login and logout relative URLs
This commit is contained in:
parent
c92eb1b17d
commit
dd71355e8a
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=8" />
|
<meta http-equiv="X-UA-Compatible" content="IE=8" />
|
||||||
<title>QBT_TR(qBittorrent web User Interface)QBT_TR</title>
|
<title>QBT_TR(qBittorrent web User Interface)QBT_TR</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/css/style.css" />
|
<link rel="stylesheet" type="text/css" href="css/style.css" />
|
||||||
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
<script type="text/javascript" src="scripts/mootools-1.2-core-yc.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
function submitLoginForm() {
|
function submitLoginForm() {
|
||||||
new Request({
|
new Request({
|
||||||
url: '/login',
|
url: 'login',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: $('loginform').toQueryString(),
|
data: $('loginform').toQueryString(),
|
||||||
onComplete: function() {
|
onComplete: function() {
|
||||||
|
|
|
@ -371,7 +371,7 @@ initializeWindows = function() {
|
||||||
addClickEvent('logout', function(e) {
|
addClickEvent('logout', function(e) {
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
new Request({
|
new Request({
|
||||||
url: '/logout',
|
url: 'logout',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
onSuccess: function() {
|
onSuccess: function() {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
|
@ -396,4 +396,4 @@ initializeWindows = function() {
|
||||||
new Event(e).stop();
|
new Event(e).stop();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue