Browse Source

Merge pull request #3039 from ngosang/webui_relative_urls

Web UI: Fix login and logout relative URLs. Closes #3038
adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
d222dece92
  1. 4
      src/webui/www/private/login.html
  2. 4
      src/webui/www/public/scripts/mocha-init.js

4
src/webui/www/private/login.html

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=8" />
<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">
window.onload = function() {
@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
function submitLoginForm() {
new Request({
url: '/login',
url: 'login',
method: 'post',
data: $('loginform').toQueryString(),
onComplete: function() {

4
src/webui/www/public/scripts/mocha-init.js

@ -371,7 +371,7 @@ initializeWindows = function() { @@ -371,7 +371,7 @@ initializeWindows = function() {
addClickEvent('logout', function(e) {
new Event(e).stop();
new Request({
url: '/logout',
url: 'logout',
method: 'get',
onSuccess: function() {
window.location.reload();
@ -396,4 +396,4 @@ initializeWindows = function() { @@ -396,4 +396,4 @@ initializeWindows = function() {
new Event(e).stop();
});
});
}
}

Loading…
Cancel
Save