Index: branches/unlabeled/unlabeled-1.15.2/kernel/admin_templates/incs/script.js =================================================================== diff -u -N -r4247 -r4382 --- branches/unlabeled/unlabeled-1.15.2/kernel/admin_templates/incs/script.js (.../script.js) (revision 4247) +++ branches/unlabeled/unlabeled-1.15.2/kernel/admin_templates/incs/script.js (.../script.js) (revision 4382) @@ -10,7 +10,7 @@ var submitted = false; var $edit_mode = false; var $init_made = true; // in case of double inclusion of script.js :) - + // hook processing var hBEFORE = 1; // this is const, but including this twice causes errors var hAFTER = 2; // this is const, but including this twice causes errors @@ -56,7 +56,7 @@ { var $i = 0; var $local_hooks = getArrayValue($hooks, $function_name, $hook_type); - + while($i < $local_hooks.length) { $local_hooks[$i]($function_name); $i++; @@ -162,6 +162,8 @@ function print_pre(variable) { var s = ""; + + for (prop in variable) { s += prop+" => "+variable[prop] + ""; } @@ -781,23 +783,23 @@ var $dst_html = $aSelect.options[$dst_num].innerHTML; var $src_value = $aSelect.options[$src_num].value; var $dst_value = $aSelect.options[$dst_num].value; - + var $src_option = document.createElement('OPTION'); var $dst_option = document.createElement('OPTION'); - + $aSelect.remove($src_num); $aSelect.options.add($dst_option, $src_num); $dst_option.innerText = $dst_html; $dst_option.value = $dst_value; $dst_option.innerHTML = $dst_html; - + $aSelect.remove($dst_num); $aSelect.options.add($src_option, $dst_num); $src_option.innerText = $src_html; $src_option.value = $src_value; $src_option.innerHTML = $src_html; } - + function getXMLHTTPObject() { var http_request = false; @@ -818,8 +820,8 @@ } return http_request; } - - function str_repeat($symbol, $count) + + function str_repeat($symbol, $count) { var $i = 0; var $ret = ''; @@ -828,4 +830,5 @@ $i++; } return $ret; + }