Add fill down and blank down operations for all columns

This commit is contained in:
jamessspanggg 2020-01-20 22:21:37 +08:00
parent e62bb7ac0e
commit 90628e6ab0

View File

@ -760,6 +760,39 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
click: function() {
new ColumnReorderingDialog();
}
},
{},
{
label: $.i18n('core-views/fill-down'),
id: "core/fill-down",
click: function() {
for (var i = 0; i < theProject.columnModel.columns.length; i++) {
Refine.postCoreProcess(
"fill-down",
{
columnName: theProject.columnModel.columns[i].name
},
null,
{ modelsChanged: true }
);
}
}
},
{
label: $.i18n('core-views/blank-down'),
id: "core/blank-down",
click: function() {
for (var i = 0; i < theProject.columnModel.columns.length; i++) {
Refine.postCoreProcess(
"blank-down",
{
columnName: theProject.columnModel.columns[i].name
},
null,
{ modelsChanged: true }
);
}
}
}
]
},