mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Ask for confirmation before clicking on mark all as read
This commit is contained in:
parent
ac3693562b
commit
a634839678
19 changed files with 39 additions and 66 deletions
|
@ -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";
|
||||
|
||||
|
|
4
ui/static/js/bootstrap.js
vendored
4
ui/static/js/bootstrap.js
vendored
|
@ -65,10 +65,6 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
request.execute();
|
||||
}));
|
||||
|
||||
onClick("a[data-link-state=flip]", (event) => {
|
||||
flipElementState(event.target);
|
||||
}, true);
|
||||
|
||||
if (document.documentElement.clientWidth < 600) {
|
||||
onClick(".logo", () => toggleMainMenu());
|
||||
onClick(".header nav li", (event) => onClickMainMenuListItem(event));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue