Index: branches/RC/core/admin_templates/js/grid.js =================================================================== diff -u -r11929 -r11932 --- branches/RC/core/admin_templates/js/grid.js (.../grid.js) (revision 11929) +++ branches/RC/core/admin_templates/js/grid.js (.../grid.js) (revision 11932) @@ -314,7 +314,7 @@ this.prefix = prefix; this.class_on = class_on; this.class_off = class_off; - this.Items = new Array(); + this.Items = {}; this.LastSelectedSequence = 1; this.LastSelectedId = null; this.DblClick = dbl_click; @@ -474,7 +474,7 @@ Grid.prototype.SetDependantToolbarButtons = function($buttons, $direct, $mode) { if (!isset($direct)) $direct = true; // direct (use false for invert mode) if (!isset($mode)) $mode = 1; // enable/disable (use 2 for show/hide mode) - for (var i in $buttons) { + for (var i = 0; i < $buttons.length; i++) { this.DependantButtons.push(new Array($buttons[i], $direct, $mode)); } //this.DependantButtons = buttons; @@ -485,7 +485,7 @@ { // alert('prefix: ' + this.prefix + '; ' + $called_from + ' -> Grid.CheckDependencies'); var enabling = (this.CountSelected() > 0); - for (var i in this.DependantButtons) { + for (var i = 0; i < this.DependantButtons.length; i++) { if (this.DependantButtons[i][0].match("portal:(.*)")) { button_name = RegExp.$1; if (toolbar) {