fix(status-monitor): Correction des guillemets dans le JavaScript - Fix SyntaxError loading
This commit is contained in:
@@ -245,7 +245,7 @@ def generate_html():
|
||||
function setGlobalLoad(b) {
|
||||
refreshInProgress = b;
|
||||
var elem = document.getElementById("global-loading");
|
||||
elem.innerHTML = b ? "<span class=\"loading-spinner\"></span>" : "";
|
||||
elem.innerHTML = b ? '<span class="loading-spinner"></span>' : '';
|
||||
}
|
||||
|
||||
function render() {
|
||||
@@ -285,7 +285,7 @@ def generate_html():
|
||||
function refreshService(sid) {
|
||||
const btn = event.target;
|
||||
btn.disabled = true;
|
||||
btn.innerHTML = "<span class=\"loading-spinner\"></span>";
|
||||
btn.innerHTML = '<span class="loading-spinner"></span>';
|
||||
fetch("/api/check/" + encodeURIComponent(sid))
|
||||
.then(r => r.json())
|
||||
.then(d => {
|
||||
@@ -304,7 +304,7 @@ def generate_html():
|
||||
const btn = document.querySelector(".refresh-all");
|
||||
setGlobalLoad(true);
|
||||
btn.disabled = true;
|
||||
btn.innerHTML = "<span class=\"loading-spinner\"></span> Refreshing...";
|
||||
btn.innerHTML = '<span class="loading-spinner"></span> Refreshing...';
|
||||
fetch("/api/refresh")
|
||||
.then(r => r.json())
|
||||
.then(d => {
|
||||
|
||||
Reference in New Issue
Block a user