[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] tiki-admin.js: Synchronize page-level Advanced toggle with navbar checkboxes

Benoit Grégoire (@benoitg) via TikiWiki-cvs <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68925d146e6c8_2cd5cdc3032b@gitlab-sidekiq-low-urgency-cpu-bound-v2-6b9b65f69d-8ntd7.mail>

Benoit Grégoire pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
b7a96ff3 by Joseph Lwanzo Kausi at 2025-08-05T19:27:29+00:00
[FIX] tiki-admin.js: Synchronize page-level Advanced toggle with navbar checkboxes
---
* [FIX] tiki-admin.js: Synchronize page-level Advanced toggle with navbar checkboxes

See merge request tikiwiki/tiki!7799

- - - - -


1 changed file:

- lib/jquery_tiki/tiki-admin.js


Changes:

=====================================
lib/jquery_tiki/tiki-admin.js
=====================================
@@ -379,13 +379,16 @@
         updateVisible();
     });
 
-    $(".input-pref_filters").on("change", function () {
-        const pref_filters_values = $("input[name='pref_filters[]']:checked")
-            .map(function () {
-                return $(this).val();
-            })
-            .get();
-        $("#preffilter-loader").removeClass("d-none");
+    $('.input-pref_filters').on("change", function () {
+        const pref_filters_values = $("input[name='pref_filters[]']:checked").map(function () {
+            return $(this).val();
+        }).get();
+
+        // Synchronize page-level toggle with navbar checkboxes
+        const advancedChecked = pref_filters_values.includes('advanced');
+        $('.preffilter-toggle').prop("checked", advancedChecked);
+
+        $("#preffilter-loader").removeClass('d-none');
         $.ajax("tiki-admin.php", {
             type: "POST",
             data: { pref_filters: pref_filters_values },



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/b7a96ff3cf22a25aa87bf9ab7f6e36a007b97343
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.