aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-04-13 20:01:53 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-04-13 20:01:53 +0000
commitd4ee3560876ec1428cf50dcae96f7bf7012e3d5c (patch)
treec600a83ee7ef63ebadb3022cfab406f832f9bc50 /phpBB/adm
parentc259434af4386c7e8501df9fc79ae30b0f72a058 (diff)
downloadforums-d4ee3560876ec1428cf50dcae96f7bf7012e3d5c.tar
forums-d4ee3560876ec1428cf50dcae96f7bf7012e3d5c.tar.gz
forums-d4ee3560876ec1428cf50dcae96f7bf7012e3d5c.tar.bz2
forums-d4ee3560876ec1428cf50dcae96f7bf7012e3d5c.tar.xz
forums-d4ee3560876ec1428cf50dcae96f7bf7012e3d5c.zip
fix a few things up for demonstration
git-svn-id: file:///svn/phpbb/trunk@3828 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm')
-rw-r--r--phpBB/adm/admin_permissions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/adm/admin_permissions.php b/phpBB/adm/admin_permissions.php
index a6596dc854..2d52771199 100644
--- a/phpBB/adm/admin_permissions.php
+++ b/phpBB/adm/admin_permissions.php
@@ -825,7 +825,6 @@ if (in_array($submit, array('options', 'presetsave', 'presetdel', 'update')) ||
if (option)
{
document.acl.set.selectedIndex = 0;
- var expr = new RegExp(/\d+/);
for (i = 0; i < document.acl.length; i++)
{
var elem = document.acl.elements[i];
@@ -854,7 +853,8 @@ if (in_array($submit, array('options', 'presetsave', 'presetdel', 'update')) ||
break;
default:
- option_name = elem.name.substr(9, elem.name.length - 10);
+ option_start = elem.name.search(/\[(\w+?)\]$/);
+ option_name = elem.name.substr(option_start + 1, elem.name.length - option_start - 2);
if (presets[option].yes.indexOf(option_name + ',') != -1 && elem.value == <?php echo ACL_YES; ?>)
elem.checked = true;
@@ -911,7 +911,7 @@ if (in_array($submit, array('options', 'presetsave', 'presetdel', 'update')) ||
</tr>
<tr>
<td class="row1" width="150">Will set options in: <br /><span class="gensmall"></span></td>
- <td class="row2"><select name="f[<?php echo $which_mode; ?>][]" multiple="4" onchange="this.form.submit()"><?php
+ <td class="row2"><select name="f[<?php echo $which_mode; ?>][]" multiple="4"><?php
echo make_forum_select($forum_id[$which_mode], false);