run initMost() after modal box has been opened

This commit is contained in:
Uwe Steinmann 2025-04-02 08:13:38 +02:00
parent 3bed5b0d68
commit c8a7dad7d6
2 changed files with 2 additions and 1 deletions

View File

@ -363,6 +363,7 @@ $(document).ready( function() {
}); /* }}} */
$('body').on('click', '[data-toggle="modal"]', function(ev){ /* {{{ */
setTimeout(function(){initMost();}, 500);
/* Also set the title */
if($(this).data("modal-title"))
$($(this).data("target")+' .modal-header h3').html($(this).data("modal-title"));

View File

@ -395,7 +395,7 @@ $(document).ready( function() {
*/
$('body').on('click', '[data-toggle="modal"]', function(ev){ /* {{{ */
ev.preventDefault();
$($(this).data("target")+' .modal-body').load($(this).data("remote"));
$($(this).data("target")+' .modal-body').load($(this).data("remote"), function() {setTimeout(function(){initMost();}, 500);});
/* Also set the title */
if($(this).data("modal-title"))
$($(this).data("target")+' .modal-header h3').html($(this).data("modal-title"));