Added an initial call to get all user preferences on page load

Этот коммит содержится в:
hmhealey
2015-10-15 15:09:40 -04:00
родитель 4b99e17140
Коммит 327b0b5a21
11 изменённых файлов: 179 добавлений и 13 удалений

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

@@ -1142,6 +1142,19 @@ export function listIncomingHooks(success, error) {
});
}
export function getAllPreferences(success, error) {
$.ajax({
url: `/api/v1/preferences/`,
dataType: 'json',
type: 'GET',
success,
error: (xhr, status, err) => {
var e = handleError('getAllPreferences', xhr, status, err);
error(e);
}
});
}
export function getPreferenceCategory(category, success, error) {
$.ajax({
url: `/api/v1/preferences/${category}`,