Skip Navigation

[Resolved] many to many relation object/javascript event when come back from created action

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 1 year, 3 months ago.

Assisted by: Minesh.

Author
Posts
#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
Supporter

Languages: English (English )

Timezone: 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.