mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
MyTasks template task transition commands now refesh page and set status message on complete.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5608 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -233,6 +233,32 @@ var MyTasks = {
|
||||
});
|
||||
fxInfo.start(animInfo);
|
||||
});
|
||||
},
|
||||
|
||||
transitionTask: function(tUrl, rUrl, successMessage)
|
||||
{
|
||||
YAHOO.util.Connect.asyncRequest(
|
||||
"GET",
|
||||
getContextPath() + tUrl,
|
||||
{
|
||||
success: function(response)
|
||||
{
|
||||
window.location.href = rUrl + "&_rand=" + Math.floor(Math.random()*99999) +
|
||||
"&" + "m=" + successMessage;
|
||||
},
|
||||
failure: function(e)
|
||||
{
|
||||
alert(e.status + " : ERROR failed to transition task.");
|
||||
window.location.href = rUrl + "&_rand=" + Math.floor(Math.random()*99999);
|
||||
}
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
displayMessage: function(message)
|
||||
{
|
||||
var footer = $('taskFooter');
|
||||
footer.innerHTML = message + ' ' + footer.innerHTML
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user