Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
7671a1d5
Commit
7671a1d5
authored
Oct 17, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix errormessage after update
parent
bd6b5ac8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
main.js
cps/static/js/main.js
+8
-3
No files found.
cps/static/js/main.js
View file @
7671a1d5
...
...
@@ -261,6 +261,7 @@ $(function() {
}
function
updateTimer
()
{
var
no_response
=
0
;
$
.
ajax
({
dataType
:
"json"
,
url
:
getPath
()
+
"/get_updater_status"
,
...
...
@@ -271,8 +272,12 @@ $(function() {
}
},
error
:
function
error
()
{
// Server has to restart in 60 Sek. otherwise output error message
no_response
+=
1
;
if
(
no_response
>
30
)
{
$
(
"#DialogContent"
).
html
(
updateText
[
11
]);
cleanUp
();
}
},
timeout
:
2000
});
...
...
@@ -447,7 +452,7 @@ $(function() {
$
(
"#spinner2"
).
show
();
$
.
ajax
({
dataType
:
"json"
,
url
:
window
.
location
.
pathname
+
"/../..
/shutdown"
,
url
:
getPath
()
+
"
/shutdown"
,
data
:
{
"parameter"
:
2
},
success
:
function
success
(
data
)
{
$
(
"#spinner2"
).
hide
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment