aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-08-31 16:24:45 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-08-31 16:24:45 +0200
commitb4f9c44b30ff924ef3fdf23525bf22be768738cb (patch)
treec5e3a1dce36daca5b67039a2e9eea7bd0f27eb73 /phpBB/adm/style
parent42e278e1c321097a0c9b9a50448ad35157b7ab2b (diff)
parent6b04fda0f323e7cfddab427c4f8696ac440d361c (diff)
downloadforums-b4f9c44b30ff924ef3fdf23525bf22be768738cb.tar
forums-b4f9c44b30ff924ef3fdf23525bf22be768738cb.tar.gz
forums-b4f9c44b30ff924ef3fdf23525bf22be768738cb.tar.bz2
forums-b4f9c44b30ff924ef3fdf23525bf22be768738cb.tar.xz
forums-b4f9c44b30ff924ef3fdf23525bf22be768738cb.zip
Merge pull request #5070 from rxu/ticket/15467
[ticket/15467] Fix JS for permissions setting
Diffstat (limited to 'phpBB/adm/style')
-rw-r--r--phpBB/adm/style/permission_mask.html2
-rw-r--r--phpBB/adm/style/permissions.js4
2 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/adm/style/permission_mask.html b/phpBB/adm/style/permission_mask.html
index c556664b8c..23294d60df 100644
--- a/phpBB/adm/style/permission_mask.html
+++ b/phpBB/adm/style/permission_mask.html
@@ -9,6 +9,8 @@
var role_options = new Array();
+ var no_role_assigned = "{LA_NO_ROLE_ASSIGNED}";
+
<!-- IF S_ROLE_JS_ARRAY -->
{S_ROLE_JS_ARRAY}
<!-- ENDIF -->
diff --git a/phpBB/adm/style/permissions.js b/phpBB/adm/style/permissions.js
index 9178adab50..af8e21ad51 100644
--- a/phpBB/adm/style/permissions.js
+++ b/phpBB/adm/style/permissions.js
@@ -279,6 +279,10 @@ function reset_role(id) {
}
t.options[0].selected = true;
+
+ var parent = t.parentNode;
+ parent.querySelector('span.dropdown-trigger').innerText = no_role_assigned;
+ parent.querySelector('input[data-name^=role]').value = '0';
}
/**