diff options
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/js/apps.js | 2 | ||||
-rw-r--r-- | apps/settings/js/settings.js | 2 | ||||
-rw-r--r-- | apps/settings/js/settings/personalInfo.js | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/apps/settings/js/apps.js b/apps/settings/js/apps.js index 0685509e59f..a3c1650e445 100644 --- a/apps/settings/js/apps.js +++ b/apps/settings/js/apps.js @@ -2,7 +2,7 @@ OC.Settings = OC.Settings || {}; OC.Settings.Apps = OC.Settings.Apps || { rebuildNavigation: function() { - $.getJSON(OC.linkToOCS('core/navigation/apps?format=json')).done(function(response){ + $.getJSON(OC.linkToOCS('core/navigation', 2) + 'apps?format=json').done(function(response){ if(response.ocs.meta.status === 'ok') { var addedApps = {}; var navEntries = response.ocs.data; diff --git a/apps/settings/js/settings.js b/apps/settings/js/settings.js index 9658d64dd16..6f29b3fc58c 100644 --- a/apps/settings/js/settings.js +++ b/apps/settings/js/settings.js @@ -35,7 +35,7 @@ OC.Settings = _.extend(OC.Settings, { if ($elements.length > 0) { // Let's load the data and THEN init our select $.ajax({ - url: OC.linkToOCS('cloud/groups/details'), + url: OC.linkToOCS('cloud/groups', 2) + 'details', dataType: 'json', success: function(data) { var results = []; diff --git a/apps/settings/js/settings/personalInfo.js b/apps/settings/js/settings/personalInfo.js index 2e57537d424..1e2a8d58ab9 100644 --- a/apps/settings/js/settings/personalInfo.js +++ b/apps/settings/js/settings/personalInfo.js @@ -222,7 +222,7 @@ window.addEventListener('DOMContentLoaded', function () { user = OC.getCurrentUser(); $.ajax({ - url: OC.linkToOCS('cloud/users/{uid}', { uid: user.uid }), + url: OC.linkToOCS('cloud/users', 2) + user['uid'], method: 'PUT', data: { key: 'language', @@ -248,7 +248,7 @@ window.addEventListener('DOMContentLoaded', function () { user = OC.getCurrentUser(); $.ajax({ - url: OC.linkToOCS('cloud/users/{uid}', { uid: user.uid }), + url: OC.linkToOCS('cloud/users', 2) + user.uid, method: 'PUT', data: { key: 'locale', |