summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-10-31 11:53:37 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2016-11-21 11:29:57 +0100
commit9c7533ff6b5d8c38f5b1aeb9bc91504a0934df56 (patch)
treebe42f62b74d8abbd05e3f7079589ba1b9437c58d /settings/js
parent51b5f2754d493c926f7474d3f991e39d0c42f68c (diff)
downloadnextcloud-server-9c7533ff6b5d8c38f5b1aeb9bc91504a0934df56.tar.gz
nextcloud-server-9c7533ff6b5d8c38f5b1aeb9bc91504a0934df56.zip
fix profile picture fed sharing scope menu
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/federationsettingsview.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js
index 9921ff64691..73b9f857558 100644
--- a/settings/js/federationsettingsview.js
+++ b/settings/js/federationsettingsview.js
@@ -1,4 +1,4 @@
-/* global OC, result */
+/* global OC, result, _ */
/**
* Copyright (c) 2016, Christoph Wurst <christoph@owncloud.com>
@@ -7,7 +7,7 @@
* See the COPYING-README file.
*/
-(function() {
+(function(_, $, OC) {
'use strict';
var FederationSettingsView = OC.Backbone.View.extend({
@@ -46,11 +46,11 @@
// Set inputs whenever model values change
if (!scopeOnly) {
- self.listenTo(self._config, 'change:' + field, function () {
+ self.listenTo(self._config, 'change:' + field, function() {
self.$('#' + field).val(self._config.get(field));
});
}
- self.listenTo(self._config, 'change:' + field + 'Scope', function () {
+ self.listenTo(self._config, 'change:' + field + 'Scope', function() {
self._setFieldScopeIcon(field, self._config.get(field + 'Scope'));
});
});
@@ -118,7 +118,7 @@
// update displayName on the top right expand button
$('#expandDisplayName').text(displayName);
// update avatar if avatar is available
- if(!$('#removeavatar').hasClass('hidden')) {
+ if (!$('#removeavatar').hasClass('hidden')) {
updateAvatar();
}
},
@@ -159,4 +159,4 @@
OC.Settings = OC.Settings || {};
OC.Settings.FederationSettingsView = FederationSettingsView;
-})(); \ No newline at end of file
+})(_, $, OC); \ No newline at end of file