From 6a4e5c8626476a3e24e4170b7b1c541ddcc9bbee Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Sun, 31 Jan 2016 16:07:04 +0100 Subject: right redirect link handling --- src/web/js/components/MiddlePanel.react.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/web/js/components') diff --git a/src/web/js/components/MiddlePanel.react.js b/src/web/js/components/MiddlePanel.react.js index fd291624..eca56541 100644 --- a/src/web/js/components/MiddlePanel.react.js +++ b/src/web/js/components/MiddlePanel.react.js @@ -35,7 +35,7 @@ var TableLine = React.createClass({ icon = ; } var title = ( + onClick={this.openRedirectLink}> {icon} {this.props.feed_title} ); var read = ( ); }, + openRedirectLink: function(evnt) { + if(!this.state.read) { + this.toogleRead(evnt); + } + }, toogleRead: function(evnt) { this.setState({read: !this.state.read}, function() { MiddlePanelActions.changeRead(this.props.category_id, -- cgit