}
},
+ /**
+ * @see WCF.Search.Base._openDropdown()
+ */
+ _openDropdown: function() {
+ this._list.find('small').each(function(index, element) {
+ while (element.scrollWidth > element.clientWidth) {
+ element.innerText = '\u2026 ' + element.innerText.substr(3);
+ }
+ });
+ },
+
/**
* @see WCF.Search.Base._handleEmptyResult()
*/
var $containerID = this._searchInput.parents('.dropdown').wcfIdentify();
if (!WCF.Dropdown.getDropdownMenu($containerID).hasClass('dropdownOpen')) {
WCF.Dropdown.toggleDropdown($containerID);
+
+ this._openDropdown();
}
// pre-select first item
}
},
+ /**
+ * Is called after the dropdown has been opened.
+ */
+ _openDropdown: function() {
+ // does nothing
+ },
+
/**
* Handles empty result lists, should return false if dropdown should be hidden.
*