I am just upgrading one of my packages to be 4.6.x compatable and having trouble getting the context menus working again - I'm sure I'm probably missing something really obvious but I fear its's now a case of not being able to see the wood for the trees.
Here are the relevant properties in my IAction implementation:
public string JsFunctionName
{
get
{
return "EditApp(nodeID)";
}
}
public string JsSource
{
get { return "/umbraco/plugins/appmanager/appmanager.js"; }
}
Here is an example of the javascript function I was using for testing which is contained in appmanager.js:
function EditApp(nodeID) {
alert(nodeID); }
I can confirm that the script is in the correct location and is being referenced in the UI but I never get the alert - what am I missing?
Problems with custom tree context menus in 4.6.x
I am just upgrading one of my packages to be 4.6.x compatable and having trouble getting the context menus working again - I'm sure I'm probably missing something really obvious but I fear its's now a case of not being able to see the wood for the trees.
Here are the relevant properties in my IAction implementation:
Here is an example of the javascript function I was using for testing which is contained in appmanager.js:
I can confirm that the script is in the correct location and is being referenced in the UI but I never get the alert - what am I missing?
Hi Simon
Have you tried to copy-paste the code into the JsSource return, instead of referencing the .js file?
/Bo
That won't work unfortunately because JSSource will end up being written out to the UI like this:
is working on a reply...