[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [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 <6a15d9146b7f6_3810df2184234a@gitlab-sidekiq-low-urgency-cpu-bound-v2-cb9bccbb8-jvddg.mail>

Jonny Bradley pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
68487dab by Jonny Bradley at 2026-05-26T17:32:02+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


(cherry picked from commit 62e094f4e659d5946c9a983f5d1a5857a96ac22a)

c3e39590 [MOD] trackers: Trigger an event when dynamic list  fields are "ready" in a...

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


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/68487daba973880a98f4ddb811e160243b9da83f

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