Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit ccf98c6

Browse files
committed
Add a "filter" button using the new FilesList feature in ajxp_datagrid : applicable to logs directly.
1 parent 77867ec commit ccf98c6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

core/src/plugins/editor.ajxp_datagrid/ajxp_datagrid.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@
2727
font-size: 11px;
2828
letter-spacing: 1px;
2929
color: rgb(71,71,71);
30-
padding-left: 0;
30+
padding-left: 3px;
3131
}

core/src/plugins/editor.ajxp_datagrid/class.AjxpDataGridEditor.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,17 @@ Class.create("AjxpDataGridEditor", AbstractEditor, {
5151
this.fRP.reloadDataModel();
5252
}.bind(this));
5353
}
54-
}else if(aName == 'copy_as_text'){
54+
} else if(aName == 'filter' && this.fRP){
55+
if(!this.htmlElement.down("#filterButton")){
56+
this.htmlElement.down(".editor_action_bar").insert('' +
57+
'<a id="filterButton" class="icon-filter" title="Filter">' +
58+
' <span message_id="235" class="actionbar_button_label">Filter</span>' +
59+
'</a>');
60+
this.htmlElement.down("#filterButton").observe("click", function(){
61+
this.fRP.toggleFilterPane();
62+
}.bind(this));
63+
}
64+
} else if(aName == 'copy_as_text'){
5565
if(!this.htmlElement.down("#copyAsTextButton")){
5666
this.htmlElement.down(".editor_action_bar").insert('' +
5767
'<a id="copyAsTextButton" class="icon-copy" title="Copy">' +

0 commit comments

Comments
 (0)