AJS.$(document).bind('dialogContentReady ready', function(event, dialog){ var calling_host = "jira"; if(window.location.origin == "https://SDSD.com" || window.location.origin == "https://SSS.com") { calling_host = "jira blue"; } else if(window.location.origin == "AAA" || window.location.origin == "https://BBB.com") { calling_host = "jira orange"; } var chatbot_url = ""; if(window.location.origin.indexOf("test") > -1) { chatbot_url = "https://QQ.com"; } else { chatbot_url = "tt.com"; } jQuery('head').append("<script src='" + chatbot_url + "/MBot/otto.js'>"); setTimeout(loadOtto, 2000); function loadOtto() { var obj = Object.create(Otto); obj.init(chatbot_url, calling_host);}});
@Arun_Thundyill_SaseendranCan you help me in this.???
Nic Brough [Adaptavist]
Thanks the above solution worked I was having cache issue, adding settimeout make it run.
Cool!
Thanks Arun for looking into request
It looks like you're new here. Sign in or register to get started.