Add fill down and blank down operations for all columns
@@ -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 }
+ );
+ }
+ }
}
]
},
