luci-app-syncthing: fix typo

This commit is contained in:
CN_SZTL 2020-03-08 16:11:56 +08:00
parent 2e4a7d8319
commit e8f0876137
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="openClient();" />';
var links = '<font color=green>Syncthing <%:RUNNING%></font><input class="cbi-button mar-10" type="button" value="<%:Open Web Interface%>" onclick="openClient();" />';
tb.innerHTML = links;
} else {
tb.innerHTML = '<font color=red><%:NOT RUNNING%></font>';
tb.innerHTML = '<font color=red>Syncthing <%:NOT RUNNING%></font>';
}
}
}
@ -21,6 +21,7 @@ function openClient() {
var clientPort = window.document.getElementById("cbid.syncthing.config.port").value
var url = "http:" + localhostPath.substring(window.location.protocol.length) + ":" + clientPort;
window.open(url)
};
//]]>
</script>
<style>.mar-10 {margin-left: 50px; margin-right: 10px;}</style>