mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-11-27 18:10:42 +00:00
do not load content of modal box from href url, if href is not set
This commit is contained in:
parent
eb2f4d6206
commit
917ba91d95
|
|
@ -1718,7 +1718,8 @@ $(document).ready(function() { /* {{{ */
|
||||||
|
|
||||||
$(document).ready(function() { /* {{{ */
|
$(document).ready(function() { /* {{{ */
|
||||||
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function(){
|
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function(){
|
||||||
$($(this).data("target")+' .modal-body').load($(this).attr('href'));
|
if($(this).attr('href'))
|
||||||
|
$($(this).data("target")+' .modal-body').load($(this).attr('href'));
|
||||||
});
|
});
|
||||||
}); /* }}} */
|
}); /* }}} */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user