From: Matthias Schmidt Date: Sun, 20 Jun 2021 11:38:00 +0000 (+0200) Subject: Remove `WCF.UserPanel` (#4316) X-Git-Tag: 5.5.0_Alpha_1~619^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=03075a72c2c795e3c6c2dcdf621da9bec9c74ca2;p=GitHub%2FWoltLab%2FWCF.git Remove `WCF.UserPanel` (#4316) This component has been deprecated for many years since 611bfec845fba517504f186d7c97dc6c559f8f7d. --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 05a1c1fe6a..094e6041c2 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7127,185 +7127,6 @@ WCF.Language.Chooser = Class.extend({ */ WCF.Style = { }; -/** - * Converts static user panel items into interactive dropdowns. - * - * @deprecated 2.1 - Please use WCF.User.Panel.Interactive instead - * - * @param string containerID - */ -WCF.UserPanel = Class.extend({ - /** - * target container - * @var jQuery - */ - _container: null, - - /** - * initialization state - * @var boolean - */ - _didLoad: false, - - /** - * original link element - * @var jQuery - */ - _link: null, - - /** - * language variable name for 'no items' - * @var string - */ - _noItems: '', - - /** - * reverts to original link if return values are empty - * @var boolean - */ - _revertOnEmpty: true, - - /** - * Initializes the WCF.UserPanel class. - * - * @param string containerID - */ - init: function(containerID) { - this._container = $('#' + containerID); - this._didLoad = false; - this._revertOnEmpty = true; - - if (this._container.length != 1) { - console.debug("[WCF.UserPanel] Unable to find container identified by '" + containerID + "', aborting."); - return; - } - - this._convert(); - }, - - /** - * Converts link into an interactive dropdown menu. - */ - _convert: function() { - this._container.addClass('dropdown'); - this._link = this._container.children('a').remove(); - - var $button = $('' + this._link.html() + '').appendTo(this._container).click($.proxy(this._click, this)); - var $dropdownMenu = $('