mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
git-svn-id: file:///svn/phpbb/trunk@6501 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -21,16 +21,20 @@
|
|||||||
|
|
||||||
function display_modes(value)
|
function display_modes(value)
|
||||||
{
|
{
|
||||||
// Remove select fields
|
// Find the old select tag
|
||||||
var item = document.getElementById('module_mode');
|
var item = document.getElementById('module_mode');
|
||||||
|
|
||||||
|
// 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;
|
var j = 0;
|
||||||
|
|
||||||
// empty existing items
|
|
||||||
for (var i = 0; i <= item.options.length; i++)
|
|
||||||
{
|
|
||||||
item.options[i] = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
<!-- BEGIN m_names -->
|
<!-- BEGIN m_names -->
|
||||||
|
|
||||||
if (value == '{m_names.NAME}')
|
if (value == '{m_names.NAME}')
|
||||||
|
Reference in New Issue
Block a user