Skip to content

Commit

Permalink
fix profile picture fed sharing scope menu
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed Nov 7, 2016
1 parent 7c52e1d commit d40cb01
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 6 additions & 2 deletions settings/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ input#openid, input#webdav { width:20em; }
min-width: 200px;
}
#avatarform > h2 span,
#personal-settings-container > div h2 span[class^="icon-"] {
#personal-settings-container > div h2 {
position: relative;
}
#personal-settings-container > div h2 span[class^="icon-"],
#personal-settings-avatar-container h2 span[class^="icon-"] {
display: inline-block;
margin-left: 5px;
background-size: 110%;
Expand All @@ -102,7 +106,7 @@ input#openid, input#webdav { width:20em; }
pointer-events: none;
}
.federationScopeMenu {
top: 66px;
top: 44px;
}
.federationScopeMenu.bubble::after {
left: 45px;
Expand Down
12 changes: 6 additions & 6 deletions settings/js/federationsettingsview.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* global OC, result */
/* global OC, result, _ */

/**
* Copyright (c) 2016, Christoph Wurst <christoph@owncloud.com>
Expand All @@ -7,7 +7,7 @@
* See the COPYING-README file.
*/

(function() {
(function(_, $, OC) {
'use strict';

var FederationSettingsView = OC.Backbone.View.extend({
Expand Down Expand Up @@ -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'));
});
});
Expand Down Expand Up @@ -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();
}
},
Expand Down Expand Up @@ -159,4 +159,4 @@

OC.Settings = OC.Settings || {};
OC.Settings.FederationSettingsView = FederationSettingsView;
})();
})(_, $, OC);
2 changes: 1 addition & 1 deletion settings/templates/personal.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<form id="avatarform" class="section" method="post" action="<?php p(\OC::$server->getURLGenerator()->linkToRoute('core.avatar.postAvatar')); ?>">
<h2>
<label><?php p($l->t('Profile picture')); ?></label>
<span class="icon-loading"/>
<span class="icon-password"/>
</h2>
<div id="displayavatar">
<div class="avatardiv"></div>
Expand Down

0 comments on commit d40cb01

Please sign in to comment.