confirm with the user before deleting pads

This commit is contained in:
ansuz 2016-07-04 17:35:44 +02:00
parent ca80736ee1
commit 648f64c6fc
1 changed files with 1 additions and 0 deletions

View File

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