luci-app-syncthing: fix typo

This commit is contained in:
CN_SZTL 2020-03-08 16:11:56 +08:00
parent 740cf28db5
commit 43883be99c
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -4,10 +4,10 @@ XHR.poll(1, '<%=url([[admin]], [[nas]], [[syncthing]], [[status]])%>', null,
var tb = document.getElementById('syncthing_status');
if (data && tb) {
if (data.running) {
var links = '<font color=green><%:RUNNING%></font><input class="cbi-button mar-10" type="button" value="<%:Open Web Interface%>" onclick="openwebui();" />';
var links = '<font color=green>Syncthing <%:RUNNING%></font><input class="cbi-button mar-10" type="button" value="<%:Open Web Interface%>" onclick="openwebui();" />';
tb.innerHTML = links;
} else {
tb.innerHTML = '<font color=red><%:NOT RUNNING%></font>';
tb.innerHTML = '<font color=red>Syncthing <%:NOT RUNNING%></font>';
}
}
}