mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2025-01-17 22:28:34 +01:00
Fixes couple issues with confirmDailog (#951)
* Fixes naming for confirmDailog id, otherwise dialog won't work * Removes destroying form as browser complains that it can't process request from disconnected form
This commit is contained in:
parent
12baf03ef5
commit
9c4d30d7b5
@ -4008,8 +4008,7 @@ $isStickyNavBar = $sticky_navbar ? 'navbar-fixed' : 'navbar-normal';
|
||||
let tpl = $("#js-tpl-confirm").html();
|
||||
$(".modal.confirmDailog").remove();
|
||||
$('#wrapper').append(template(tpl,tplObj));
|
||||
const $confirmDailog = $("#confirmDialog-"+tplObj.id);
|
||||
$confirmDailog.on('hidden.bs.modal', function() { $confirmDailog.remove(); });
|
||||
const $confirmDailog = $("#confirmDailog-"+tplObj.id);
|
||||
$confirmDailog.modal('show');
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user