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

Commit

Permalink
Add a "filter" button using the new FilesList feature in ajxp_datagri…
Browse files Browse the repository at this point in the history
…d : applicable to logs directly.
  • Loading branch information
cdujeu committed Apr 1, 2015
1 parent 77867ec commit ccf98c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/plugins/editor.ajxp_datagrid/ajxp_datagrid.css
Expand Up @@ -27,5 +27,5 @@
font-size: 11px;
letter-spacing: 1px;
color: rgb(71,71,71);
padding-left: 0;
padding-left: 3px;
}
Expand Up @@ -51,7 +51,17 @@ Class.create("AjxpDataGridEditor", AbstractEditor, {
this.fRP.reloadDataModel();
}.bind(this));
}
}else if(aName == 'copy_as_text'){
} else if(aName == 'filter' && this.fRP){
if(!this.htmlElement.down("#filterButton")){
this.htmlElement.down(".editor_action_bar").insert('' +
'<a id="filterButton" class="icon-filter" title="Filter">' +
' <span message_id="235" class="actionbar_button_label">Filter</span>' +
'</a>');
this.htmlElement.down("#filterButton").observe("click", function(){
this.fRP.toggleFilterPane();
}.bind(this));
}
} else if(aName == 'copy_as_text'){
if(!this.htmlElement.down("#copyAsTextButton")){
this.htmlElement.down(".editor_action_bar").insert('' +
'<a id="copyAsTextButton" class="icon-copy" title="Copy">' +
Expand Down

1 comment on commit ccf98c6

@Nanomani
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very usefull. Thx :-)

Please sign in to comment.