mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-09-08 10:59:03 +00:00
run initMost() after modal box has been opened
This commit is contained in:
parent
3bed5b0d68
commit
c8a7dad7d6
|
@ -363,6 +363,7 @@ $(document).ready( function() {
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
|
||||||
$('body').on('click', '[data-toggle="modal"]', function(ev){ /* {{{ */
|
$('body').on('click', '[data-toggle="modal"]', function(ev){ /* {{{ */
|
||||||
|
setTimeout(function(){initMost();}, 500);
|
||||||
/* Also set the title */
|
/* Also set the title */
|
||||||
if($(this).data("modal-title"))
|
if($(this).data("modal-title"))
|
||||||
$($(this).data("target")+' .modal-header h3').html($(this).data("modal-title"));
|
$($(this).data("target")+' .modal-header h3').html($(this).data("modal-title"));
|
||||||
|
|
|
@ -395,7 +395,7 @@ $(document).ready( function() {
|
||||||
*/
|
*/
|
||||||
$('body').on('click', '[data-toggle="modal"]', function(ev){ /* {{{ */
|
$('body').on('click', '[data-toggle="modal"]', function(ev){ /* {{{ */
|
||||||
ev.preventDefault();
|
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 */
|
/* Also set the title */
|
||||||
if($(this).data("modal-title"))
|
if($(this).data("modal-title"))
|
||||||
$($(this).data("target")+' .modal-header h3').html($(this).data("modal-title"));
|
$($(this).data("target")+' .modal-header h3').html($(this).data("modal-title"));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user