cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a JS action within a JS action

drocco88
Champ in-the-making
Champ in-the-making
Hi all,

I'm wondering how can I call a Javascript action (defined in the OOTB actions.js) from my custom action?

Many thanks,
Rocco
2 REPLIES 2

ddraper
World-Class Innovator
World-Class Innovator
Assuming that both actions are in the global JavaScript namespace (which I would have thought they would be - the Alfresco one will be) then you should just be able to just call it directly. Which function are you trying to call?

Regards,
Dave

drocco88
Champ in-the-making
Champ in-the-making
Hey Dave,

It turns out that the js function I wanted to call need to be tweaked so I need to override it to my needs.

Is basically related to the yesterday's post on how to extend the "Selected Items…" menu without having to replace toolbar.get.config.xml.

I found this and works http://charles.torda.net/2012/05/08/simplifier-la-configuration-des-actions-multiples-dans-share/

Do you have any concerns about doing that?

Regards,
Rocco