AnsweredAssumed Answered

Custom action. client side javascript problem

Question asked by anusk on Sep 2, 2010
I want to develop a custom action in the records managent module. I've read the example of custom action in Share, and I followed the steps.
The problem is that when I clik in the action, nothing happens. The function is undefined (typing javascript:alert(Alfresco.doclib.RecordsActions.prototype.onActionChangeOwner shows "undefined".)
I set the action in dod5015-documentlist.get.config.xml
I added the code
<!– Change Owner Action –>
<link rel="stylesheet" type="text/css" href="${page.url.context}/components/documentlibrary/change-owner.css" />
<script type="text/javascript" src="${page.url.context}/components/documentlibrary/change-owner.js"></script>
to dod5015-documentlist.get.head.ftl

I tried adding the same code to dod5015-actions-common.get.head.ftl, and I tried to directly add the function at  dod5015-actions.js, but the function is still undefined!

What I have to do to define the function???

Kind regards,

EDIT: I tried with Firefox, and the function is defined…and still undefined in IE…anyone could tell me why???