1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

Ask for confirmation before clicking on mark all as read

This commit is contained in:
Frédéric Guillot 2019-07-17 21:52:45 -07:00
parent ac3693562b
commit a634839678
19 changed files with 39 additions and 66 deletions

View file

@ -454,15 +454,6 @@ function isListView() {
return document.querySelector(".items") !== null;
}
function flipElementState(element) {
let labelElement = document.createElement("span");
labelElement.className = "link-flipped-state";
labelElement.appendChild(document.createTextNode(element.dataset.labelNewState));
element.parentNode.appendChild(labelElement);
element.parentNode.removeChild(element);
}
function handleConfirmationMessage(linkElement, callback) {
linkElement.style.display = "none";