mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-26 12:31:47 +02:00
[feature] adding link remove prompt
This commit is contained in:
parent
6c302fb991
commit
b2a5e84e24
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;
|
||||
|
@ -1,7 +1,7 @@
|
||||
var version = (function() {
|
||||
|
||||
// version is normally bumped when the state needs changing or any new functionality is added
|
||||
var current = "3.4.0";
|
||||
var current = "3.5.0";
|
||||
|
||||
var compare = function(a, b) {
|
||||
var pa = a.split(".");
|
||||
|
Loading…
x
Reference in New Issue
Block a user