Fixed bug in collapse and expand all columns commands.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@389 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-04-06 06:18:43 +00:00
parent 93d6f9fc54
commit a28a8d1769

View File

@ -362,7 +362,7 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
label: "Collapse All Columns", label: "Collapse All Columns",
click: function() { click: function() {
for (var i = 0; i < theProject.columnModel.columns.length; i++) { for (var i = 0; i < theProject.columnModel.columns.length; i++) {
theProject.columnModel.columns[i].collapsed = true; self._collapsedColumnNames[theProject.columnModel.columns[i].name] = true;
} }
self.render(); self.render();
} }
@ -370,9 +370,7 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
{ {
label: "Expand All Columns", label: "Expand All Columns",
click: function() { click: function() {
for (var i = 0; i < theProject.columnModel.columns.length; i++) { self._collapsedColumnNames = [];
theProject.columnModel.columns[i].collapsed = false;
}
self.render(); self.render();
} }
} }