Fix display title
This commit is contained in:
parent
f24b77dd5c
commit
43e4ec8762
1 changed files with 3 additions and 3 deletions
|
@ -13,11 +13,11 @@ var PlaylistBox = React.createClass({
|
|||
currentId: null
|
||||
};
|
||||
},
|
||||
clickOnItem: function (id, uid, event) {
|
||||
clickOnItem: function (id, uid, title, event) {
|
||||
event.preventDefault();
|
||||
if (!this.props.dupsLoading) {
|
||||
this.setState({currentId: id});
|
||||
this.props.handleClick(id, uid);
|
||||
this.props.handleClick(id, uid, title);
|
||||
}
|
||||
},
|
||||
render: function () {
|
||||
|
@ -33,7 +33,7 @@ var PlaylistBox = React.createClass({
|
|||
var classes = this.props.dupsLoading ? "disabled" : "";
|
||||
return (
|
||||
<ListGroupItem href="#"
|
||||
onClick={this.clickOnItem.bind(this, id, pl.owner.id)}
|
||||
onClick={this.clickOnItem.bind(this, id, pl.owner.id, pl.name)}
|
||||
className={classes}
|
||||
active={active}
|
||||
key={id}>
|
||||
|
|
Loading…
Reference in a new issue