mirror of
https://github.com/zombieFox/nightTab.git
synced 2025-06-26 20:41:21 +02:00
[feature] adding link remove prompt
This commit is contained in:
parent
6c302fb991
commit
b2a5e84e24
@ -430,9 +430,18 @@ var link = (function() {
|
|||||||
edit(data);
|
edit(data);
|
||||||
}, false);
|
}, false);
|
||||||
linkRemove.addEventListener("click", function() {
|
linkRemove.addEventListener("click", function() {
|
||||||
|
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);
|
remove(data);
|
||||||
control.dependents();
|
control.dependents();
|
||||||
control.render();
|
control.render();
|
||||||
|
},
|
||||||
|
actionText: "Remove",
|
||||||
|
cancelText: "Cancel",
|
||||||
|
size: "small"
|
||||||
|
});
|
||||||
}, false);
|
}, false);
|
||||||
|
|
||||||
return linkItem;
|
return linkItem;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
var version = (function() {
|
var version = (function() {
|
||||||
|
|
||||||
// version is normally bumped when the state needs changing or any new functionality is added
|
// 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 compare = function(a, b) {
|
||||||
var pa = a.split(".");
|
var pa = a.split(".");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user