diff --git a/main/webapp/modules/core/scripts/views/data-table/data-table-view.js b/main/webapp/modules/core/scripts/views/data-table/data-table-view.js index ab31a4c27..935b9a3e4 100644 --- a/main/webapp/modules/core/scripts/views/data-table/data-table-view.js +++ b/main/webapp/modules/core/scripts/views/data-table/data-table-view.js @@ -875,11 +875,11 @@ DataTableView.prototype._createSortingMenu = function(elmt) { }; var doAllFillDown = function() { - doFillDown(0); + doFillDown(theProject.columnModel.columns.length - 1); }; var doFillDown = function(colIndex) { - if (colIndex < theProject.columnModel.columns.length) { + if (colIndex >= 0) { Refine.postCoreProcess( "fill-down", { @@ -889,7 +889,7 @@ var doFillDown = function(colIndex) { {modelsChanged: true}, { onDone: function() { - doFillDown(++colIndex); + doFillDown(--colIndex); } } );