Skip to content

Commit

Permalink
Reverse order of fill down operation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamessspanggg committed Jan 27, 2020
1 parent d7d4731 commit a19f859
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -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",
{
Expand All @@ -889,7 +889,7 @@ var doFillDown = function(colIndex) {
{modelsChanged: true},
{
onDone: function() {
doFillDown(++colIndex);
doFillDown(--colIndex);
}
}
);
Expand Down

0 comments on commit a19f859

Please sign in to comment.