Added ConfigStore that is populated from the server

Этот коммит содержится в:
hmhealey
2015-08-13 13:01:21 -04:00
родитель d35065d6fd
Коммит ca919538cc
7 изменённых файлов: 123 добавлений и 3 удалений

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

@@ -850,6 +850,21 @@ module.exports.updateValetFeature = function(data, success, error) {
module.exports.track('api', 'api_teams_update_valet_feature');
};
function getConfig(success, error) {
$.ajax({
url: '/api/v1/config/get_all',
dataType: 'json',
type: 'GET',
ifModified: true,
success: success,
error: function(xhr, status, err) {
var e = handleError('getConfig', xhr, status, err);
error(e);
}
});
};
module.exports.getConfig = getConfig;
module.exports.isEmailEnabledSynchronous = function() {
var enabled = false;