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

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


Commits:
f1dd26cf by Jonny Bradley at 2026-05-26T17:32:22+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/f1dd26cff2a7a7cf0ed92db8c296086aa1b14e6e

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