1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-27 20:10:18 +02:00

[ticket/14315] Add back roles select for disable javascript

The javascript will hide the old select and show the version using
the span and showing the tooltips.

PHPBB3-14315
This commit is contained in:
Marc Alexander
2016-02-16 17:32:33 +01:00
parent 32815faa33
commit 6f41fcb3d6
4 changed files with 30 additions and 1 deletions

@@ -142,6 +142,10 @@ phpbb.positionTooltip = function ($element) {
phpbb.prepareRolesDropdown = function () {
var $options = $('.roles-options li');
// Display span and hide select
$('.roles-options > span').css('display', 'block');
$('.roles-options > select').hide();
// Prepare highlighting of select options and settings update
$options.each(function () {
var $this = $(this);