added facet by blank to menu All
This commit is contained in:
parent
465b025ace
commit
4bdc0b6fb3
@ -581,6 +581,7 @@
|
||||
"core-views/starred-rows": "Starred Rows",
|
||||
"core-views/facet-flag": "Facet by flag",
|
||||
"core-views/flagged-rows": "Flagged Rows",
|
||||
"core-views/blank-rows": "Blank Rows",
|
||||
"core-views/edit-rows": "Edit rows",
|
||||
"core-views/star-rows": "Star rows",
|
||||
"core-views/unstar-rows": "Unstar rows",
|
||||
|
@ -650,6 +650,23 @@ DataTableView.prototype._createMenuForAllColumns = function(elmt) {
|
||||
}
|
||||
);
|
||||
}
|
||||
},
|
||||
{
|
||||
label: $.i18n('core-views/facet-blank'),
|
||||
id: "core/facet-by-blank",
|
||||
click: function() {
|
||||
ui.browsingEngine.addFacet(
|
||||
"list",
|
||||
{
|
||||
"name" : $.i18n('core-views/blank-rows'),
|
||||
"columnName" : "",
|
||||
"expression" : "(filter(row.columnNames,cn,isNonBlank(cells[cn].value)).length()>0).toString()"
|
||||
},
|
||||
{
|
||||
"scroll" : false
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user