summaryrefslogtreecommitdiffstats
path: root/settings/js/usersettings.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-21 11:19:10 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:29:38 +0100
commitd1233b47b0d96df364a1b5c043cabedc74d5eb01 (patch)
tree314e658c1c5f162ba197811225800f07074ac8c5 /settings/js/usersettings.js
parent78f6e29954ed3c0e868d4eccdc95e4b6e8febdea (diff)
downloadnextcloud-server-d1233b47b0d96df364a1b5c043cabedc74d5eb01.tar.gz
nextcloud-server-d1233b47b0d96df364a1b5c043cabedc74d5eb01.zip
use PUT to update user settings
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/js/usersettings.js')
-rw-r--r--settings/js/usersettings.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/js/usersettings.js b/settings/js/usersettings.js
index d8d089f83de..fcfe556b1d9 100644
--- a/settings/js/usersettings.js
+++ b/settings/js/usersettings.js
@@ -17,6 +17,9 @@
*/
var UserSettings = OC.Backbone.Model.extend({
url: OC.generateUrl('/settings/users/{id}/settings', {id: OC.currentUser}),
+ isNew: function() {
+ return false; // Force PUT on .save()
+ },
parse: function(data) {
if (_.isUndefined(data)) {
return null;