mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-03 21:15:42 +02:00
[ticket/6466] Improve code in tooltip.js
PHPBB3-6466
This commit is contained in:
parent
120600e055
commit
c8bb0fd241
@ -93,8 +93,6 @@ phpbb.showTooltip = function ($element) {
|
||||
|
||||
/**
|
||||
* Hide tooltip
|
||||
*
|
||||
* @param {object} $element Element passed by .on()
|
||||
*/
|
||||
phpbb.hideTooltip = function () {
|
||||
var d = document.getElementById('_tooltip_container');
|
||||
@ -142,7 +140,7 @@ phpbb.prepareRolesDropdown = function () {
|
||||
var $options = $('.roles-options li');
|
||||
|
||||
// Prepare highlighting of select options and settings update
|
||||
$options.each(function (element) {
|
||||
$options.each(function () {
|
||||
var $this = $(this);
|
||||
var $roles_options = $this.closest('.roles-options');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user