mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 11:06:49 +01:00
Select currently configured files in tag editor (#152)
This commit is contained in:
@@ -370,7 +370,7 @@ function updatecards() {
|
||||
}
|
||||
}
|
||||
|
||||
if (item.dataset.nextcheckin == 3216153600) {
|
||||
if (item.dataset.nextcheckin == 3216153600) {
|
||||
$('#tag' + tagmac + ' .nextcheckin').innerHTML = "In deep sleep";
|
||||
} else if (item.dataset.nextcheckin > 1672531200 && parseInt(item.dataset.wakeupreason) == 0) {
|
||||
let nextcheckin = item.dataset.nextcheckin - ((Date.now() / 1000) - servertimediff);
|
||||
@@ -564,7 +564,7 @@ $('#rebootbutton').onclick = function (event) {
|
||||
method: "POST"
|
||||
});
|
||||
alert('Rebooted. Webpage will reload.');
|
||||
location.reload()
|
||||
location.reload()
|
||||
}
|
||||
|
||||
$('#configbox').addEventListener('click', (event) => {
|
||||
@@ -723,6 +723,7 @@ function contentselected() {
|
||||
const optionElement = document.createElement("option");
|
||||
optionElement.value = item.name;
|
||||
optionElement.text = item.name;
|
||||
if (obj[element.key] === item.name) optionElement.selected = true;
|
||||
input.appendChild(optionElement);
|
||||
})
|
||||
})
|
||||
@@ -1362,4 +1363,4 @@ function setFilterAndShow(filter) {
|
||||
$('input[name="filter"][value="lowbatt"]').checked = (filter == 'lowbatt');
|
||||
GroupSortFilter();
|
||||
$(`[data-target='tagtab']`).click();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user