[feature] adding link remove prompt

This commit is contained in:
Kuldeep M 2019-06-05 09:13:12 +01:00
parent 6c302fb991
commit b2a5e84e24
2 changed files with 13 additions and 4 deletions

View File

@ -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;

View File

@ -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(".");