From cd1c77bd4c7d870bd1dfbdeae3249935aa6fe034 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 27 Nov 2012 15:52:26 +0100 Subject: [PATCH] Fix for overrides of WCF.UserPanel._convert() --- wcfsetup/install/files/js/WCF.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 4d3f1b5928..8a00d29e68 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7076,7 +7076,9 @@ WCF.UserPanel = Class.extend({ } if (this._container.data('count')) { + WCF.DOMNodeInsertedHandler.enable(); this._convert(); + WCF.DOMNodeInsertedHandler.disable(); } }, @@ -7084,8 +7086,6 @@ WCF.UserPanel = Class.extend({ * Converts link into an interactive dropdown menu. */ _convert: function() { - WCF.DOMNodeInsertedHandler.enable(); - this._container.addClass('dropdown'); this._link = this._container.children('a').remove(); @@ -7094,8 +7094,6 @@ WCF.UserPanel = Class.extend({ $('
  • ' + WCF.Language.get('wcf.global.loading') + '
  • ').appendTo($dropdownMenu); this._addDefaultItems($dropdownMenu); - - WCF.DOMNodeInsertedHandler.disable(); }, /** -- 2.20.1