Navigation überspringen

[Gelöst] many to many relation object/javascript event when come back from created action

This support ticket is created vor 2 years, 8 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zeitzone des Unterstützers: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 1 reply, hat 2 Stimmen.

Zuletzt aktualisiert von Minesh vor 2 years, 8 months.

Assistiert von: Minesh.

Author
Artikel
#2649951

Hi Support,

I created a relation many2many and append a javascript to do sortable object.
I arrive to have a drag & drop sortable list.
But when i create a new relation between exiting objects, toolbox open a div popup for the link.
One time done, the div popup close and reload the table with the list.
I need to catch the reload done.
I would like to add listener to an object to launch my javascript function.
Is there a way to do that ?

Please, thank you.
Wilhem.

#2650431

Minesh
Unterstützer

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

There is no such feature available to hook custom JavaScript/jQuery code but you may check the following post relationship API function that runs on new association created:
- https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_association_created

You can play with that and check if you able to hook custom JavaScript using above hook otherwise I do not have any workaround to share here.