fix extranous btn class issue

This commit is contained in:
José Oliveros
2017-05-18 17:29:13 -05:00
parent 9c6d1f2c2d
commit 4214bc93d7

View File

@@ -11,6 +11,8 @@ $(function() {
if (response.TWILIO_ACCOUNT_SID && response.TWILIO_ACCOUNT_SID != '' && if (response.TWILIO_ACCOUNT_SID && response.TWILIO_ACCOUNT_SID != '' &&
response.TWILIO_API_KEY && response.TWILIO_API_KEY != '' && response.TWILIO_API_SECRET) { response.TWILIO_API_KEY && response.TWILIO_API_KEY != '' && response.TWILIO_API_SECRET) {
$('#videoDemoButton').addClass('btn-success');
if (response.TWILIO_CHAT_SERVICE_SID && response.TWILIO_CHAT_SERVICE_SID != '') { if (response.TWILIO_CHAT_SERVICE_SID && response.TWILIO_CHAT_SERVICE_SID != '') {
$('#chatDemoButton').addClass('btn-success'); $('#chatDemoButton').addClass('btn-success');
} else { } else {
@@ -35,9 +37,6 @@ $(function() {
$('#syncDemoButton').addClass('btn-danger'); $('#syncDemoButton').addClass('btn-danger');
$('#notifyDemoButton').addClass('btn-danger'); $('#notifyDemoButton').addClass('btn-danger');
} }
}); });
var configureField = function(response, keyName, elementId, masked) { var configureField = function(response, keyName, elementId, masked) {
@@ -58,6 +57,5 @@ $(function() {
$('#' + elementId).addClass('unset'); $('#' + elementId).addClass('unset');
} }
} }
}; };
}); });