aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/adm/style/acp_modules.html
diff options
context:
space:
mode:
authorDavid M <davidmj@users.sourceforge.net>2006-10-14 21:00:26 +0000
committerDavid M <davidmj@users.sourceforge.net>2006-10-14 21:00:26 +0000
commit4d0ebfcdf23e52dafc07ab13be290cd4ac2832bb (patch)
tree4742628375f395f5efa1671e76d1a5bb20390046 /phpBB/adm/style/acp_modules.html
parent2cc31fee0e3e868730d06348203b36eee95d61d0 (diff)
downloadforums-4d0ebfcdf23e52dafc07ab13be290cd4ac2832bb.tar
forums-4d0ebfcdf23e52dafc07ab13be290cd4ac2832bb.tar.gz
forums-4d0ebfcdf23e52dafc07ab13be290cd4ac2832bb.tar.bz2
forums-4d0ebfcdf23e52dafc07ab13be290cd4ac2832bb.tar.xz
forums-4d0ebfcdf23e52dafc07ab13be290cd4ac2832bb.zip
#4720
git-svn-id: file:///svn/phpbb/trunk@6501 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/style/acp_modules.html')
-rw-r--r--phpBB/adm/style/acp_modules.html20
1 files changed, 12 insertions, 8 deletions
diff --git a/phpBB/adm/style/acp_modules.html b/phpBB/adm/style/acp_modules.html
index 6514372894..e0e7accc46 100644
--- a/phpBB/adm/style/acp_modules.html
+++ b/phpBB/adm/style/acp_modules.html
@@ -21,16 +21,20 @@
function display_modes(value)
{
- // Remove select fields
+ // Find the old select tag
var item = document.getElementById('module_mode');
- var j = 0;
-
- // empty existing items
- for (var i = 0; i <= item.options.length; i++)
- {
- item.options[i] = null;
- }
+ // Create the new select tag
+ var new_node = document.createElement('select');
+ new_node.setAttribute('id', 'module_mode');
+
+ // Substitute it for the old one
+ item.parentNode.replaceChild(new_node, item);
+
+ // Reset the variable
+ item = document.getElementById('module_mode');
+
+ var j = 0;
<!-- BEGIN m_names -->
if (value == '{m_names.NAME}')