aboutsummaryrefslogtreecommitdiff
path: root/src/web/js
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 16:07:04 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-31 16:07:04 +0100
commit6a4e5c8626476a3e24e4170b7b1c541ddcc9bbee (patch)
tree2a1123ad2013c6ecb2cd4a932a1443771dffd34d /src/web/js
parentdecommissionning old home (diff)
downloadnewspipe-6a4e5c8626476a3e24e4170b7b1c541ddcc9bbee.tar.gz
newspipe-6a4e5c8626476a3e24e4170b7b1c541ddcc9bbee.tar.bz2
newspipe-6a4e5c8626476a3e24e4170b7b1c541ddcc9bbee.zip
right redirect link handling
Diffstat (limited to 'src/web/js')
-rw-r--r--src/web/js/components/MiddlePanel.react.js7
1 files changed, 6 insertions, 1 deletions
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 = <Glyphicon glyph="ban-circle" />;
}
var title = (<a href={'/article/redirect/' + this.props.article_id}
- onClick={this.stopPropagation}>
+ onClick={this.openRedirectLink}>
{icon} {this.props.feed_title}
</a>);
var read = (<Glyphicon glyph={this.state.read?"check":"unchecked"}
@@ -56,6 +56,11 @@ var TableLine = React.createClass({
</div>
);
},
+ 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,
bgstack15