From 917ba91d959a9a63911fb03ebde2dd00152a17e0 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 20 Oct 2025 12:41:52 +0200 Subject: [PATCH] do not load content of modal box from href url, if href is not set --- views/bootstrap4/styles/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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')); }); }); /* }}} */