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