Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
99fb68b2
Commit
99fb68b2
authored
Oct 01, 2021
by
Dominik Hebeler
Browse files
removed last jquery calls
parent
57a56b69
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/views/admin/spam.blade.php
View file @
99fb68b2
...
...
@@ -114,14 +114,14 @@
document
.
querySelector
(
"#head > button"
)
.
addEventListener
(
'click'
,
function
()
{
if
(
!
updating
)
{
$
(
"#head > button"
)
.
remove
Class
(
"btn-danger"
);
$
(
"#head > button"
)
.
addClass
(
"btn-success"
);
document
.
querySelector
(
"#head > button"
)
.
classList
.
remove
(
"btn-danger"
);
document
.
querySelector
(
"#head > button"
)
.
classList
.
add
(
"btn-success"
);
buttonText
=
"Aktualisierung stoppen"
;
interval
=
setInterval
(
updateQueries
,
1000
);
}
var
updateAt
=
lastUpdate
+
60000
;
var
updateIn
=
Math
.
round
((
updateAt
-
Date
.
now
())
/
1000
);
$
(
"#head > button"
)
.
html
(
buttonText
+
" ("
+
updateIn
+
")"
)
;
document
.
querySelector
(
"#head > button"
)
.
innerHTML
=
buttonText
+
" ("
+
updateIn
+
")"
;
updating
=
!
updating
;
})
...
...
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