Reverse order of fill down operation

This commit is contained in:
jamessspanggg 2020-01-27 17:14:57 +08:00
parent d7d4731f80
commit a19f859d2e

View File

@ -875,11 +875,11 @@ DataTableView.prototype._createSortingMenu = function(elmt) {
}; };
var doAllFillDown = function() { var doAllFillDown = function() {
doFillDown(0); doFillDown(theProject.columnModel.columns.length - 1);
}; };
var doFillDown = function(colIndex) { var doFillDown = function(colIndex) {
if (colIndex < theProject.columnModel.columns.length) { if (colIndex >= 0) {
Refine.postCoreProcess( Refine.postCoreProcess(
"fill-down", "fill-down",
{ {
@ -889,7 +889,7 @@ var doFillDown = function(colIndex) {
{modelsChanged: true}, {modelsChanged: true},
{ {
onDone: function() { onDone: function() {
doFillDown(++colIndex); doFillDown(--colIndex);
} }
} }
); );