[TikiWiki-commits] [Git][tikiwiki/tiki][master] [MOD] trackers: Trigger an event when dynamic list fields are "ready"

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <6a15cff8e1899_38192b0c693eb@gitlab-sidekiq-low-urgency-cpu-bound-v2-cb9bccbb8-8htk9.mail>

Jonny Bradley pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
62e094f4 by Jonny Bradley at 2026-05-26T15:33:21+00:00
[MOD] trackers: Trigger an event when dynamic list  fields are "ready"
---
* [MOD] trackers: Trigger an event when dynamic list  fields are "ready" in a similar way to how `ready.object_selector` works, to enable custom code to be able to process options once loaded or changed (thanks @jyhem)

See merge request tikiwiki/tiki!10375

- - - - -


1 changed file:

- lib/core/Tracker/Field/DynamicList.php


Changes:

=====================================
lib/core/Tracker/Field/DynamicList.php
=====================================
@@ -331,6 +331,9 @@ $("body").on("change", "input[name=\'' . $filterFieldHereName . '\'], select[nam
                     });
                 }
             }
+                
+            // tell the document we are ready
+            $(document).trigger("ready.dynamic_list", [$ddl]);
 
             $ddl.trigger("change");
             $ddl.parent().tikiModal();



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/62e094f4e659d5946c9a983f5d1a5857a96ac22a
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
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.