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() {
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);
}
}
);