Hi everyone,
I custom "activiti-transitions.js" file and working done in CHROME.
But not working in IE. Please help me.
(In my IE - JavaScript is enabled)
FILE:
_onClickOk: function ActivitiTransitions_onClickOk(p_obj){ //MNT-2196 fix, disable transition button to prevent multiple execution p_obj.set("disabled", true); // determine what button was pressed by it's id var buttonId = p_obj.get("id"); var transitionId = buttonId.substring(this.id.length + 1); // get the hidden field var hiddenField = this._getHiddenField(); // set the hidden field value Dom.setAttribute(hiddenField, "value", transitionId); if (Alfresco.logger.isDebugEnabled()) Alfresco.logger.debug("Set transitions hidden field to: " + transitionId); // generate the hidden transitions field this._generateTransitionsHiddenField(); // attempt to submit the form Alfresco.util.submitForm(p_obj.getForm()); }, /** * Event handler called when a transition button is clicked. * * @method onClick * @param e {object} DomEvent * @param p_obj {object} Object passed back from addListener method */ 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{ //MNT-2196 fix, disable transition button to prevent multiple execution p_obj.set("disabled", true); // determine what button was pressed by it's id var buttonId = p_obj.get("id"); var transitionId = buttonId.substring(this.id.length + 1); // get the hidden field var hiddenField = this._getHiddenField(); // set the hidden field value Dom.setAttribute(hiddenField, "value", transitionId); if (Alfresco.logger.isDebugEnabled()) Alfresco.logger.debug("Set transitions hidden field to: " + transitionId); // generate the hidden transitions field this._generateTransitionsHiddenField(); // attempt to submit the form Alfresco.util.submitForm(p_obj.getForm()); } }
Hi,
Could you provide a little more information about your environment - what version of IE, any console logs, etc?
Thanks,
Eddie
.includes (also .contains) function doesn't work in IE. Play with .indexOf function, or create your own String.prototype.includes function.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.