mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-08-15 16:32:34 +02:00
[feature] adding link remove prompt
This commit is contained in:
15
js/link.js
15
js/link.js
@ -430,9 +430,18 @@ var link = (function() {
|
||||
edit(data);
|
||||
}, false);
|
||||
linkRemove.addEventListener("click", function() {
|
||||
remove(data);
|
||||
control.dependents();
|
||||
control.render();
|
||||
modal.render({
|
||||
heading: "Remove " + data.name + " bookmark",
|
||||
content: "Are you sure you want to remove this bookmark? This can not be undone.",
|
||||
successAction: function() {
|
||||
remove(data);
|
||||
control.dependents();
|
||||
control.render();
|
||||
},
|
||||
actionText: "Remove",
|
||||
cancelText: "Cancel",
|
||||
size: "small"
|
||||
});
|
||||
}, false);
|
||||
|
||||
return linkItem;
|
||||
|
Reference in New Issue
Block a user