diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-13 11:52:17 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-13 12:29:31 -0400 |
commit | 2a39e8dbfab8506b09d0d030f87cac4c079b975a (patch) | |
tree | dd2ca36ca7ef73a2cf8eda11d6a62848d7d29a79 /web/react/utils/client.jsx | |
parent | 5cecf1afcd1d8e561a5b2d840e5bd1b588a74a27 (diff) | |
download | chat-2a39e8dbfab8506b09d0d030f87cac4c079b975a.tar.gz chat-2a39e8dbfab8506b09d0d030f87cac4c079b975a.tar.bz2 chat-2a39e8dbfab8506b09d0d030f87cac4c079b975a.zip |
Removed Preference.AltId
Diffstat (limited to 'web/react/utils/client.jsx')
-rw-r--r-- | web/react/utils/client.jsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/web/react/utils/client.jsx b/web/react/utils/client.jsx index 4e3505ad2..76a402855 100644 --- a/web/react/utils/client.jsx +++ b/web/react/utils/client.jsx @@ -1142,29 +1142,29 @@ export function listIncomingHooks(success, error) { }); } -export function getPreferencesByName(category, name, success, error) { +export function getPreferenceCategory(category, success, error) { $.ajax({ - url: `/api/v1/preferences/${category}/${name}`, + url: `/api/v1/preferences/${category}`, dataType: 'json', type: 'GET', success, error: (xhr, status, err) => { - var e = handleError('getPreferencesByName', xhr, status, err); + var e = handleError('getPreferenceCategory', xhr, status, err); error(e); } }); } -export function setPreferences(preferences, success, error) { +export function savePreferences(preferences, success, error) { $.ajax({ - url: '/api/v1/preferences/set', + url: '/api/v1/preferences/save', dataType: 'json', contentType: 'application/json', type: 'POST', data: JSON.stringify(preferences), success, error: (xhr, status, err) => { - var e = handleError('setPreferences', xhr, status, err); + var e = handleError('savePreferences', xhr, status, err); error(e); } }); |