diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-09-17 16:33:27 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2019-09-28 09:39:28 +0000 |
commit | de6940352a2f708376219a89ec84a8e6d25ca59e (patch) | |
tree | 459bacfc183b24d611be1877fbe22bbcd4efb1d6 /settings/js/usersettings.js | |
parent | c8cd607681ac128228f57114ce14dd67ab05de04 (diff) | |
download | nextcloud-server-de6940352a2f708376219a89ec84a8e6d25ca59e.tar.gz nextcloud-server-de6940352a2f708376219a89ec84a8e6d25ca59e.zip |
Move settings to an app
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'settings/js/usersettings.js')
-rw-r--r-- | settings/js/usersettings.js | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/settings/js/usersettings.js b/settings/js/usersettings.js deleted file mode 100644 index fcfe556b1d9..00000000000 --- a/settings/js/usersettings.js +++ /dev/null @@ -1,50 +0,0 @@ -/* global OC */ - -/** - * Copyright (c) 2016, Christoph Wurst <christoph@owncloud.com> - * - * This file is licensed under the Affero General Public License version 3 or later. - * See the COPYING-README file. - */ - -(function() { - 'use strict'; - - /** - * Model for storing and saving user settings - * - * @class UserSettings - */ - 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; - } - if (_.isUndefined(data.data)) { - return null; - } - data = data.data; - - var ignored = [ - 'userId', - 'message' - ]; - - _.each(ignored, function(ign) { - if (!_.isUndefined(data[ign])) { - delete data[ign]; - } - }); - - return data; - } - }); - - OC.Settings = OC.Settings || {}; - - OC.Settings.UserSettings = UserSettings; -})();
\ No newline at end of file |