Hi all,
Just to explain what I have already done.
In the file flash-upload.get.html.ftl I created the button:
<div id="${el}-left-div" class="fileupload-left-div">
<span class="fileupload-fileButton-span">
<button class="fileupload-file-button2" value="Changer le type" disabled="true" tabindex="0">${msg("Changer le type")}</button>
</span>
</div>
and in the flash-upload.js I created the action:
var fButton_changer = Dom.getElementsByClassName("fileupload-file-button2", "button", templateInstance);
if (fButton_changer.length == 1)
{
var fileButton_changer = new YAHOO.widget.Button(fButton_changer[0],
{
type: "button",
disabled: false
});
fileButton_changer.subscribe("click", function()
{
this._onFileButtonChangeClickHandler(flashId, oRecord.getId());
}, this, true);
this.fileStore[flashId].fileButton_changer = fileButton_changer;
}
In this part of my code, I call the function this._onFileButtonChangeClickHandler(flashId, oRecord.getId());. This function I declared at the same file:
_onFileButtonChangeClickHandler: function FlashUpload__onFileButtonChangeClickHandler(flashId, recordId)
{
console.log("*** onFileButtonChangeClickHandler ***");
},
But now, I need to call the function onActionChangeType: function dlA_onActionChangeType(asset) in the file actions.js.
Thanks all,
Rodrigo