Fix cancelling deletion of snipt.
parent
4b77407a35
commit
0eb3f7fc7d
|
@ -126,8 +126,8 @@
|
||||||
$('button.delete', window.site.$main_edit).on('click', function() {
|
$('button.delete', window.site.$main_edit).on('click', function() {
|
||||||
if (confirm('Are you sure you want to delete this snipt?')) {
|
if (confirm('Are you sure you want to delete this snipt?')) {
|
||||||
that.model.destroy();
|
that.model.destroy();
|
||||||
|
window.site.snipt_list.escapeUI(true);
|
||||||
}
|
}
|
||||||
window.site.snipt_list.escapeUI(true);
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
$('button.cancel', window.site.$main_edit).on('click', function() {
|
$('button.cancel', window.site.$main_edit).on('click', function() {
|
||||||
|
|
Loading…
Reference in New Issue