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 currentId: null
}; };
}, },
clickOnItem: function (id, uid, event) { clickOnItem: function (id, uid, title, event) {
event.preventDefault(); event.preventDefault();
if (!this.props.dupsLoading) { if (!this.props.dupsLoading) {
this.setState({currentId: id}); this.setState({currentId: id});
this.props.handleClick(id, uid); this.props.handleClick(id, uid, title);
} }
}, },
render: function () { render: function () {
@ -33,7 +33,7 @@ var PlaylistBox = React.createClass({
var classes = this.props.dupsLoading ? "disabled" : ""; var classes = this.props.dupsLoading ? "disabled" : "";
return ( return (
<ListGroupItem href="#" <ListGroupItem href="#"
onClick={this.clickOnItem.bind(this, id, pl.owner.id)} onClick={this.clickOnItem.bind(this, id, pl.owner.id, pl.name)}
className={classes} className={classes}
active={active} active={active}
key={id}> key={id}>