mirror of https://github.com/xwiki-labs/cryptpad
confirm with the user before deleting pads
This commit is contained in:
parent
ca80736ee1
commit
648f64c6fc
|
@ -73,6 +73,7 @@ define([
|
|||
|
||||
var $row = $('#'+id);
|
||||
$row.find('.remove').click(function () {
|
||||
if (!window.confirm("Are you sure you'd like to forget this pad (" + shortTitle + ")?")) { return; }
|
||||
forgetPad(pad.href);
|
||||
$row.fadeOut(750, function () {
|
||||
$row.remove();
|
||||
|
|
Loading…
Reference in New Issue