mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-09 00:56:36 +02:00
Bug fix: Delete confirm dialog will work wrong aflter cancel. (#942)
* Bug fix: Only delete first file/directory when clicking the delete button multiple times and canceling. * Add variable name for delete dialog
This commit is contained in:
parent
69495db9b4
commit
69ccd952fc
|
@ -4008,7 +4008,9 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
||||||
let tpl = $("#js-tpl-confirm").html();
|
let tpl = $("#js-tpl-confirm").html();
|
||||||
$(".modal.confirmDailog").remove();
|
$(".modal.confirmDailog").remove();
|
||||||
$('#wrapper').append(template(tpl,tplObj));
|
$('#wrapper').append(template(tpl,tplObj));
|
||||||
$("#confirmDailog-"+tplObj.id).modal('show');
|
const $confirmDailog = $("#confirmDialog-"+tplObj.id);
|
||||||
|
$confirmDailog.on('hidden.bs.modal', function() {$confirmDailog.remove();}
|
||||||
|
$confirmDailog.modal('show');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue