Skip to content

Commit

Permalink
[feature] adding link remove prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox committed Jun 5, 2019
1 parent 6c302fb commit b2a5e84
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions js/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion js/version.js
Original file line number Diff line number Diff line change
@@ -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(".");
Expand Down

0 comments on commit b2a5e84

Please sign in to comment.