[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH] modal: Add support for dynamic backdrop options

"Sammy Ndabo \(@ndabosam084\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <692eee735e0ac_2a2117bf840486@gitlab-sidekiq-low-urgency-cpu-bound-v2-7d89ffffdb-xbnkw.mail>

Sammy Ndabo pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
8e76bea5 by Sammy Ndabo at 2025-12-02T13:41:46+00:00
[ENH] modal: Add support for dynamic backdrop options
---
* [ENH] modal: Add support for dynamic backdrop options

See merge request tikiwiki/tiki!9168

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-jquery.js


Changes:

=====================================
lib/jquery_tiki/tiki-jquery.js
=====================================
@@ -3551,6 +3551,13 @@ $.openModal = function (options) {
         });
     }
 
+    if (options.backdrop) {
+        $modal.attr("data-bs-backdrop", options.backdrop);
+        $modal.one('hidden.bs.modal', function () {
+            $(this).removeAttr("data-bs-backdrop");
+        });
+    }
+
     if (href) {
         // Make the form load remote content
         const $placeholder = $('<div />');



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8e76bea588cddf0dd6f1cb198ea3929f8415d4d6

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/8e76bea588cddf0dd6f1cb198ea3929f8415d4d6
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.