luci-mod-battstatus: fix quotation marks
Fixes output on i18n generation: standard input:56: warning: RegExp literal terminated too early Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
parent
db87be1812
commit
7e1e83fcb8
1 changed files with 2 additions and 2 deletions
|
@ -37,8 +37,8 @@ return baseclass.extend({
|
||||||
info.name = "battery-" + dev.replace(" ", "-");
|
info.name = "battery-" + dev.replace(" ", "-");
|
||||||
ui.showIndicator(info.name, info.status, null, info.state);
|
ui.showIndicator(info.name, info.status, null, info.state);
|
||||||
if (typeof info.color != 'undefined') {
|
if (typeof info.color != 'undefined') {
|
||||||
info.element = document.querySelector(`[data-indicator="${info.name}"]`);
|
info.element = document.querySelector('[data-indicator="${info.name}"]');
|
||||||
info.element.innerHTML = `<span style="color:${info.color}">${info.status}</span>`;
|
info.element.innerHTML = '<span style="color:${info.color}">${info.status}</span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
devices[dev] = info;
|
devices[dev] = info;
|
||||||
|
|
Loading…
Reference in a new issue