mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-07-29 13:00:34 +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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user