diff options
Diffstat (limited to 'apps/settings/js/federationsettingsview.js')
-rw-r--r-- | apps/settings/js/federationsettingsview.js | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/apps/settings/js/federationsettingsview.js b/apps/settings/js/federationsettingsview.js index 9eb0b930733..a4587e1bedb 100644 --- a/apps/settings/js/federationsettingsview.js +++ b/apps/settings/js/federationsettingsview.js @@ -1,10 +1,9 @@ /* global OC, result, _ */ /** - * 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. + * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-FileCopyrightText: 2016 ownCloud, Inc. + * SPDX-License-Identifier: AGPL-3.0-or-later */ (function(_, $, OC) { @@ -82,7 +81,7 @@ ]; _.each(this._inputFields, function(field) { - var $icon = self.$('#' + field + 'form h3 > .federation-menu'); + var $icon = self.$('#' + field + 'form .headerbar-label > .federation-menu'); var excludedScopes = [] if (fieldsWithV2Private.indexOf(field) === -1) { @@ -106,6 +105,7 @@ self._onScopeChanged(field, scope); }); $icon.append(scopeMenu.$el); + $icon.attr('aria-expanded', 'false'); $icon.on('click', _.bind(scopeMenu.show, scopeMenu)); $icon.on('keydown', function(e) { if (e.keyCode === 32) { @@ -128,7 +128,12 @@ _.each(this._inputFields, function(field) { if ( field === 'avatar' || - field === 'email' + field === 'email' || + field === 'displayname' || + field === 'twitter' || + field === 'address' || + field === 'website' || + field === 'phone' ) { return; } @@ -239,7 +244,7 @@ }, _setFieldScopeIcon: function(field, scope) { - var $icon = this.$('#' + field + 'form > h3 .icon-federation-menu'); + var $icon = this.$('#' + field + 'form > .headerbar-label .icon-federation-menu'); $icon.removeClass('icon-phone'); $icon.removeClass('icon-password'); |