aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm
diff options
context:
space:
mode:
authorNekstati <52348253+Nekstati@users.noreply.github.com>2019-07-28 18:39:04 +0700
committerrxu <rxu@mail.ru>2019-07-28 22:47:01 +0700
commit6b04fda0f323e7cfddab427c4f8696ac440d361c (patch)
tree0ed4ab27e49ca6351a581fd25fbb2bc6993776c8 /phpBB/adm
parent4d640555ef1ba851f9e041c594d0dda7253e8450 (diff)
downloadforums-6b04fda0f323e7cfddab427c4f8696ac440d361c.tar
forums-6b04fda0f323e7cfddab427c4f8696ac440d361c.tar.gz
forums-6b04fda0f323e7cfddab427c4f8696ac440d361c.tar.bz2
forums-6b04fda0f323e7cfddab427c4f8696ac440d361c.tar.xz
forums-6b04fda0f323e7cfddab427c4f8696ac440d361c.zip
[ticket/15467] Fix JS for permissions setting
PHPBB3-15467
Diffstat (limited to 'phpBB/adm')
-rw-r--r--phpBB/adm/style/permissions.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/phpBB/adm/style/permissions.js b/phpBB/adm/style/permissions.js
index 4ae566ace7..af8e21ad51 100644
--- a/phpBB/adm/style/permissions.js
+++ b/phpBB/adm/style/permissions.js
@@ -280,15 +280,9 @@ function reset_role(id) {
t.options[0].selected = true;
- (function($)// Avoid conflicts with other libraries
- {
- var parent = $(t).parent();
- 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
+ var parent = t.parentNode;
+ parent.querySelector('span.dropdown-trigger').innerText = no_role_assigned;
+ parent.querySelector('input[data-name^=role]').value = '0';
}
/**