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);
}
});
Thanks the above solution worked I was having cache issue, adding settimeout make it run.
Cool!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.