mirror of
https://github.com/morpheus65535/bazarr
synced 2025-01-03 05:25:28 +00:00
Modify ping url and loader message on restart.
This commit is contained in:
parent
1cccd810ae
commit
3119502a0f
2 changed files with 5 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,4 +4,5 @@ cachefile.dbm
|
|||
*.log.*
|
||||
*.db
|
||||
*.pyc
|
||||
.idea/*
|
||||
.idea/*
|
||||
bazarr.pid
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id='loader' class="ui page dimmer">
|
||||
<div class="ui indeterminate text loader">Loading...</div>
|
||||
<div id='loader_text' class="ui indeterminate text loader">Loading...</div>
|
||||
</div>
|
||||
% include('menu.tpl')
|
||||
|
||||
|
@ -225,6 +225,7 @@
|
|||
})
|
||||
|
||||
$('#restart').click(function(){
|
||||
$('#loader_text').text("Bazarr is restarting, please wait...");
|
||||
$.ajax({
|
||||
url: "{{base_url}}restart",
|
||||
async: true
|
||||
|
@ -236,7 +237,7 @@
|
|||
|
||||
function ping() {
|
||||
$.ajax({
|
||||
url: window.location.href,
|
||||
url: '{{base_url}}',
|
||||
success: function(result) {
|
||||
window.location.reload();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue