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>
(cherry picked from commit 7e1e83fcb8
)
This commit is contained in:
parent
83d631be9d
commit
630a5755ed
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