mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/15467] Fix JS for permissions setting
PHPBB3-15467
This commit is contained in:
@@ -280,15 +280,9 @@ function reset_role(id) {
|
|||||||
|
|
||||||
t.options[0].selected = true;
|
t.options[0].selected = true;
|
||||||
|
|
||||||
(function($)// Avoid conflicts with other libraries
|
var parent = t.parentNode;
|
||||||
{
|
parent.querySelector('span.dropdown-trigger').innerText = no_role_assigned;
|
||||||
var parent = $(t).parent();
|
parent.querySelector('input[data-name^=role]').value = '0';
|
||||||
parent.find("span[title=Roles]")[0].innerText = no_role_assigned;
|
|
||||||
|
|
||||||
// Find proper role value
|
|
||||||
var roleInput = parent.find('input[name^=role][data-name]');
|
|
||||||
roleInput.val(0);
|
|
||||||
})(jQuery); // Avoid conflicts with other libraries
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user