Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit b2a5e84

Browse files
committed
[feature] adding link remove prompt
1 parent 6c302fb commit b2a5e84

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

js/link.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,18 @@ var link = (function() {
430430
edit(data);
431431
}, false);
432432
linkRemove.addEventListener("click", function() {
433-
remove(data);
434-
control.dependents();
435-
control.render();
433+
modal.render({
434+
heading: "Remove " + data.name + " bookmark",
435+
content: "Are you sure you want to remove this bookmark? This can not be undone.",
436+
successAction: function() {
437+
remove(data);
438+
control.dependents();
439+
control.render();
440+
},
441+
actionText: "Remove",
442+
cancelText: "Cancel",
443+
size: "small"
444+
});
436445
}, false);
437446

438447
return linkItem;

js/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var version = (function() {
22

33
// version is normally bumped when the state needs changing or any new functionality is added
4-
var current = "3.4.0";
4+
var current = "3.5.0";
55

66
var compare = function(a, b) {
77
var pa = a.split(".");

0 commit comments

Comments
 (0)