diff --git a/views/bootstrap4/styles/application.js b/views/bootstrap4/styles/application.js index ae89354f6..39d229062 100644 --- a/views/bootstrap4/styles/application.js +++ b/views/bootstrap4/styles/application.js @@ -1718,7 +1718,8 @@ $(document).ready(function() { /* {{{ */ $(document).ready(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')); }); }); /* }}} */