From 5fea7e50c549d9799cf9bc1cc316ec5a5fa1b123 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 8 Aug 2022 19:28:45 +0200 Subject: [PATCH] Remove the unused `WCF.Search.Message.js` file --- wcfsetup/install/files/js/.buildOrder | 1 - .../install/files/js/WCF.Search.Message.js | 94 ------------------- 2 files changed, 95 deletions(-) delete mode 100644 wcfsetup/install/files/js/WCF.Search.Message.js diff --git a/wcfsetup/install/files/js/.buildOrder b/wcfsetup/install/files/js/.buildOrder index 82ce398102..f6443fd876 100644 --- a/wcfsetup/install/files/js/.buildOrder +++ b/wcfsetup/install/files/js/.buildOrder @@ -14,6 +14,5 @@ WCF.Label WCF.Location WCF.Message WCF.Poll -WCF.Search.Message WCF.User WCF.Moderation diff --git a/wcfsetup/install/files/js/WCF.Search.Message.js b/wcfsetup/install/files/js/WCF.Search.Message.js deleted file mode 100644 index f69377bb06..0000000000 --- a/wcfsetup/install/files/js/WCF.Search.Message.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -/** - * Namespace - */ -WCF.Search.Message = {}; - -/** - * @deprecated 5.5 - The base class is deprecated since 3.0 and this code is no longer in use in WoltLab Suite. - */ -WCF.Search.Message.KeywordList = WCF.Search.Base.extend({ - /** - * @see WCF.Search.Base._className - */ - _className: 'wcf\\data\\search\\keyword\\SearchKeywordAction', - - /** - * dropdown divider - * @var jQuery - */ - _divider: null, - - /** - * true, if submit should be forced - * @var boolean - */ - _forceSubmit: false, - - /** - * @see WCF.Search.Base.init() - */ - init: function(searchInput, callback, excludedSearchValues) { - if (!$.isFunction(callback)) { - console.debug("[WCF.Search.Message.KeywordList] The given callback is invalid, aborting."); - return; - } - - this._callback = callback; - this._excludedSearchValues = []; - if (excludedSearchValues) { - this._excludedSearchValues = excludedSearchValues; - } - this._searchInput = $(searchInput).keyup($.proxy(this._keyUp, this)).keydown($.proxy(function(event) { - // block form submit - if (event.which === 13) { - // ... unless there are no suggestions or suggestions are optional and none is selected - if (this._itemCount && this._itemIndex !== -1) { - event.preventDefault(); - } - } - }, this)); - - var $dropdownMenu = WCF.Dropdown.getDropdownMenu(this._searchInput.parents('.dropdown').wcfIdentify()); - var $lastDivider = $dropdownMenu.find('li.dropdownDivider').last(); - this._divider = $('