Я настраиваю файл "activiti-transitions. js" и работа выполнена в CHROME.
, но не работает в IE. (В моем IE - JavaScript включен) Мой скрипт не работает:
onClick: function ActivitiTransitions_onClick(e, p_obj)
{
var me = this;
var buttonId = p_obj.get("id");
//NEW
if(buttonId.includes("Reject")
){
var dashboardUri = Alfresco.util.uriTemplate("userdashboardpage",
{
userid: encodeURIComponent(Alfresco.constants.USERNAME)
});
Alfresco.util.PopupManager.displayPrompt(
{
title: $msg("Title),
text: $msg("Content"),
buttons: [
{
text: $msg("OK"),
handler: function onOK()
{
this.destroy();
me._onClickOk.call(me, p_obj)
window.location = dashboardUri;
}
},
{
text: $msg("Cancle"),
handler: function onCancel()
{
this.destroy();
window.location = dashboardUri;
},
isDefault: true
}]
});
}else{
Alfresco.util.submitForm(p_obj.getForm());
}
}
Пожалуйста, помогите мне!