aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/permission_mask.html
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-06-06 20:53:46 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-06-06 20:53:46 +0000
commitdd9ad539fdab80badedf801a816b8a0beafbbf5c (patch)
treedb8ae8a184b060d5576604cc0dfa723773daedb8 /phpBB/adm/style/permission_mask.html
parent2c8afb820e3842bed2ab6cec4053e71b5c566985 (diff)
downloadforums-dd9ad539fdab80badedf801a816b8a0beafbbf5c.tar
forums-dd9ad539fdab80badedf801a816b8a0beafbbf5c.tar.gz
forums-dd9ad539fdab80badedf801a816b8a0beafbbf5c.tar.bz2
forums-dd9ad539fdab80badedf801a816b8a0beafbbf5c.tar.xz
forums-dd9ad539fdab80badedf801a816b8a0beafbbf5c.zip
ok, this one is rather large... the most important change:
re-introduce append_sid: old style continues to work, not a performance hog as it was in 2.0.x -> structure is different apart from this, code cleanage, bug fixing, etc. git-svn-id: file:///svn/phpbb/trunk@6015 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/style/permission_mask.html')
-rw-r--r--phpBB/adm/style/permission_mask.html36
1 files changed, 23 insertions, 13 deletions
diff --git a/phpBB/adm/style/permission_mask.html b/phpBB/adm/style/permission_mask.html
index 5df845702d..beec9d011f 100644
--- a/phpBB/adm/style/permission_mask.html
+++ b/phpBB/adm/style/permission_mask.html
@@ -11,8 +11,10 @@
{S_ROLE_JS_ARRAY}
<!-- ENDIF -->
- // Show/hide option panels
- // value = suffix for ID to show
+ /**
+ * Show/hide option panels
+ * value = suffix for ID to show
+ */
function swap_options(pmask, fmask, cat)
{
id = pmask + fmask + cat;
@@ -38,19 +40,21 @@
active_cat = cat;
}
- // Mark all radio buttons in one panel
- // id = table ID container, s = status ['y'/'u'/'n']
+ /**
+ * Mark all radio buttons in one panel
+ * id = table ID container, s = status ['y'/'u'/'n']
+ */
function mark_options(id, s)
{
var t = document.getElementById(id);
-
+
if (!t)
{
return;
}
-
+
var rb = t.getElementsByTagName('input');
-
+
for (var r = 0; r < rb.length; r++ )
{
if (rb[r].id.substr(rb[r].id.length-1) == s)
@@ -60,19 +64,21 @@
}
}
- // Mark one radio button in one panel
- // id = table ID container, field_name = the auth option, s = status ['y'/'u'/'n']
+ /**
+ * Mark one radio button in one panel
+ * id = table ID container, field_name = the auth option, s = status ['y'/'u'/'n']
+ */
function mark_one_option(id, field_name, s)
{
var t = document.getElementById(id);
-
+
if (!t)
{
return;
}
var rb = t.getElementsByTagName('input');
-
+
for (var r = 0; r < rb.length; r++ )
{
if (rb[r].id.substr(rb[r].id.length-field_name.length-3, field_name.length) == field_name && rb[r].id.substr(rb[r].id.length-1) == s)
@@ -82,7 +88,9 @@
}
}
- // Reset role dropdown field to Select role... if an option gets changed
+ /**
+ * Reset role dropdown field to Select role... if an option gets changed
+ */
function reset_role(id)
{
var t = document.getElementById(id);
@@ -95,7 +103,9 @@
t.options[0].selected = true;
}
- // Load role and set options accordingly
+ /**
+ * Load role and set options accordingly
+ */
function set_role_settings(role_id, target_id)
{
settings = role_options[role_id];