1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

[ticket/14315] Add functional tests for permission roles and fix non-js

Without JS the settings were not applied due to duplicate input names.

PHPBB3-14315
This commit is contained in:
Marc Alexander
2016-02-17 12:56:19 +01:00
parent d429fd03bf
commit 620a862266
4 changed files with 97 additions and 4 deletions

View File

@@ -145,6 +145,13 @@ phpbb.prepareRolesDropdown = function () {
// Display span and hide select
$('.roles-options > span').css('display', 'block');
$('.roles-options > select').hide();
$('.roles-options > input[type=hidden]').each(function () {
var $this = $(this);
if ($this.attr('data-name') && !$this.attr('name')) {
$this.attr('name', $this.attr('data-name'));
}
});
// Prepare highlighting of select options and settings update
$options.each(function () {