Fix display title

This commit is contained in:
Gabriel Augendre 2016-04-27 17:00:11 +02:00
parent f24b77dd5c
commit 43e4ec8762
No known key found for this signature in database
GPG key ID: D2B6A5B41FC438B1

View file

@ -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}>