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
|
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}>
|
||||||
|
|
Loading…
Reference in a new issue