首页 > 解决方案 > Alfresco 5.2:JavaScript 无法在 IE 中运行

问题描述

我自定义“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());               
     }

}

请帮我!

标签: javascriptalfresco

解决方案


推荐阅读