"DownloadTranscript": "Download Transcript",
"RatingMessage": "{{& RatingMessage}}",
"RatingSendText": "{{RatingSend}}",
- "RatingSkipText": "{{RatingSkip}}"
+ "RatingSkipText": "{{RatingSkip}}",
+ "MessageAgentsBusy": "{{& MessageAgentsBusy}}",
+ "EmailTitle": "{{EmailTitle}}",
+ "NameTitle": "{{NameTitle}}",
+ "MessageTitle": "{{MessageTitle}}"
},
init: function() {
jQuery(".xc_chat_container").css('margin-bottom', '-50px');
e.preventDefault();
if (xChatty.config.processingSignUp)
return false;
+ xChatty.config.processingSignUp = true;
var validationErrors = {};
var signupForm = jQuery(".xc_form_signup");
jQuery('.xc_form_signup :input').each(function () {
// }
if (Object.keys(validationErrors).length > 0) {
xChatty.renderNotifications(validationErrors,true);
+ xChatty.config.processingSignUp = false;
return;
}
var now = new Date();
}
},
error: function(err) {
+ xChatty.config.processingSignUp = false;
var error = {
'message': 'Service temporarily unavailable. We back as soon as possible!'
};
if (!wasSignedUp && xChatty.config.processingSignUp && result.is_unserved) {
xChatty.config.processingSignUp = false;
var error = {
- 'message': 'In this moment all agents are busy. Try again!'
+ 'message': xChatty.Lang.MessageAgentsBusy
};
xChatty.renderErrors(error, true);
xChatty.setHeaderText();