Index: trunk/kernel/admin_templates/config/config_general.tpl =================================================================== diff -u -r4842 -r5037 --- trunk/kernel/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 4842) +++ trunk/kernel/admin_templates/config/config_general.tpl (.../config_general.tpl) (revision 5037) @@ -44,6 +44,28 @@ return validated; } + function toggle_section($label) { + var $table = document.getElementById('config_table'); + var $row = null; + var $is_visible = false; + + for (var $i = 0; $i < $table.rows.length; $i++) { + $row = $table.rows[$i]; + if ($row.getAttribute('header_label') != $label) { + continue; + } + + if (!$row.style.display) { + $row.style.display = document.all ? 'block' : 'table-row'; + } + + $is_visible = !($row.style.display == 'none'); + $row.style.display = $is_visible ? 'none' : (document.all ? 'block' : 'table-row'); + + document.getElementById('toggle_mark['+$label+']').innerHTML = '[' + ($is_visible ? '+' : '-') + ']'; + } + } + var a_toolbar = new ToolBar(); a_toolbar.AddButton( new ToolBarButton('select', '', function() { if (ValidatePassFields()){ @@ -66,19 +88,20 @@ - +
+ - "> + " header_label="la_Text_RootCategory"> + +
- + + + [-]
- - - + @@ -92,7 +115,8 @@ ', 'ModuleRootCategory');"> -