From 43e4ec87626108e35c7c9f54517b2a0c2cc73086 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 27 Apr 2016 17:00:11 +0200 Subject: [PATCH] Fix display title --- src/public/components/playlist-box.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/public/components/playlist-box.js b/src/public/components/playlist-box.js index 5e11fb6..5d5cea5 100644 --- a/src/public/components/playlist-box.js +++ b/src/public/components/playlist-box.js @@ -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 (