Removed isEmailEnabledSynchronous and switched the email disabled warnings to use ConfigStore

Этот коммит содержится в:
hmhealey
2015-08-13 13:23:56 -04:00
родитель ca919538cc
Коммит 8fc4456213
4 изменённых файлов: 4 добавлений и 28 удалений

Просмотреть файл

@@ -864,24 +864,3 @@ function getConfig(success, error) {
});
};
module.exports.getConfig = getConfig;
module.exports.isEmailEnabledSynchronous = function() {
var enabled = false;
$.ajax({
async: false,
url: '/api/v1/config/get/bypass_email',
dataType: 'json',
type: 'GET',
success: function(value) {
enabled = !value;
},
error: function(xhr, status, err) {
if (status !== '200') {
handleError('isEmailEnabled', xhr, status, err);
}
}
});
return enabled;
};