Index: branches/RC/core/admin_templates/js/forms.js =================================================================== diff -u -N -r11661 -r11932 --- branches/RC/core/admin_templates/js/forms.js (.../forms.js) (revision 11661) +++ branches/RC/core/admin_templates/js/forms.js (.../forms.js) (revision 11932) @@ -91,7 +91,7 @@ Form.Init = function(id) { this.Div = document.getElementById(id); - for (var i in this.Controls) { + for (var i = 0; i < this.Controls.length; i++) { dim = getDimensions( document.getElementById(this.Controls[i]) ); options = this.Options[this.Controls[i]]; @@ -268,7 +268,7 @@ iterations++; } while (cur_diff != 0 && cur_diff != prev_diff && iterations < 10); - for (var i in this.Controls) { + for (var i = 0; i < this.Controls.length; i++) { document.getElementById(this.Controls[i]).style.height = this.Options[ this.Controls[i] ]['real_height'] + 'px'; // document.getElementById(this.Controls[i]).value = this.Options[this.Controls[i]]['real_height']; } @@ -281,7 +281,7 @@ Form.ResetHeights = function() { - for (var i in this.Controls) { + for (var i = 0; i < this.Controls.length; i++) { var options = this.Options[this.Controls[i]] options['real_height'] = 0; options.fixed = false; @@ -295,7 +295,7 @@ Form.SplitExtra = function(split) { var number = 0; - for (var i in this.Controls) { + for (var i = 0; i < this.Controls.length; i++) { var options = this.Options[ this.Controls[i] ]; if (options['max_height'] == 0 || options['real_height'] < options.max_height) { number++; @@ -309,7 +309,7 @@ var delta = Math.floor(split / number); // alert('splitting '+split+' between '+number+' delta is '+delta) var added = 0; - for (var i in this.Controls) { + for (var i = 0; i < this.Controls.length; i++) { var options = this.Options[this.Controls[i]]; var to_add; if (options['max_height'] != 0 && options['real_height'] + delta > options['max_height']) { @@ -336,7 +336,7 @@ Form.SetMinHeights = function() { var used = 0; - for (var i in this.Controls) { + for (var i = 0; i < this.Controls.length; i++) { var options = this.Options[this.Controls[i]] if (options['real_height'] < options['min_height']) { options['real_height'] = options.min_height;