From 26e952f3f245b44da6e15f21979b3b1243727651 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Tue, 2 Oct 2018 16:20:53 +0200 Subject: [PATCH] Fix federation-menu Javascript to use h3 Signed-off-by: Jan-Christoph Borchardt --- settings/js/federationsettingsview.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/settings/js/federationsettingsview.js b/settings/js/federationsettingsview.js index d20d7bb78b..e2781833ed 100644 --- a/settings/js/federationsettingsview.js +++ b/settings/js/federationsettingsview.js @@ -62,7 +62,7 @@ render: function() { var self = this; _.each(this._inputFields, function(field) { - var $icon = self.$('#' + field + 'form h2 > .federation-menu'); + var $icon = self.$('#' + field + 'form h3 > .federation-menu'); var scopeMenu = new OC.Settings.FederationScopeMenu({field: field}); self.listenTo(scopeMenu, 'select:scope', function(scope) { @@ -189,8 +189,8 @@ }, _setFieldScopeIcon: function(field, scope) { - var $icon = this.$('#' + field + 'form > h2 .icon-federation-menu'); - + var $icon = this.$('#' + field + 'form > h3 .icon-federation-menu'); + $icon.removeClass('icon-password'); $icon.removeClass('icon-contacts-dark'); $icon.removeClass('icon-link');