Skip to content

Commit

Permalink
add class on insert and delete btn
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Feb 16, 2016
1 parent 38a8bd9 commit 3baedef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/toolbar/ToolBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ class ToolBar extends React.Component{
render(){
var modalClassName = "bs-table-modal-sm"+new Date().getTime();
var insertBtn = this.props.enableInsert?
<button type="button" onClick={this.props.onAddRowBegin} className="btn btn-info" data-toggle="modal" data-target={'.'+modalClassName}>
<button type="button" onClick={this.props.onAddRowBegin} className="btn btn-info react-bs-table-add-btn" data-toggle="modal" data-target={'.'+modalClassName}>
<i className="glyphicon glyphicon-plus"></i> New</button>:null;

var deleteBtn = this.props.enableDelete?
<button type="button" className="btn btn-warning" data-toggle="tooltip" data-placement="right" title="Drop selected row"
<button type="button" className="btn btn-warning react-bs-table-del-btn" data-toggle="tooltip" data-placement="right" title="Drop selected row"
onClick={this.handleDropRowBtnClick.bind(this)}>
<i className="glyphicon glyphicon-trash"></i> Delete
</button>:null;
Expand Down

0 comments on commit 3baedef

Please sign in to comment.