Change method for setting active playlist
This commit is contained in:
parent
337c7cecae
commit
bd2261bed7
1 changed files with 1 additions and 2 deletions
|
@ -74,9 +74,8 @@ var PlaylistBox = React.createClass({
|
|||
if (this.props.playlists) {
|
||||
playlists = this.props.playlists.map(function (pl) {
|
||||
var id = pl.id;
|
||||
var classes = currentId == id ? "active" : "";
|
||||
return (
|
||||
<ListGroupItem href="#" onClick={this.clickOnItem.bind(this, id, pl.owner.id)} className={classes} key={id}>{pl.name}</ListGroupItem>
|
||||
<ListGroupItem href="#" onClick={this.clickOnItem.bind(this, id, pl.owner.id)} active={currentId == id} key={id}>{pl.name}</ListGroupItem>
|
||||
);
|
||||
}, this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue