aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/actions
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-02 08:25:52 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-03-02 08:25:52 +0100
commitb32ca6c0f5968f5e9f59847db5012e3ef7f98631 (patch)
tree83d6bd430c56ae552acb9577a53f0a2c9fbb7052 /src/web/js/actions
parentminor update to the navbar (diff)
downloadnewspipe-b32ca6c0f5968f5e9f59847db5012e3ef7f98631.tar.gz
newspipe-b32ca6c0f5968f5e9f59847db5012e3ef7f98631.tar.bz2
newspipe-b32ca6c0f5968f5e9f59847db5012e3ef7f98631.zip
Code update. Some problems with CSRF token on Chromium...
Diffstat (limited to 'src/web/js/actions')
-rw-r--r--src/web/js/actions/RightPanelActions.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/web/js/actions/RightPanelActions.js b/src/web/js/actions/RightPanelActions.js
index 47adad79..5d78e001 100644
--- a/src/web/js/actions/RightPanelActions.js
+++ b/src/web/js/actions/RightPanelActions.js
@@ -4,8 +4,12 @@ var ActionTypes = require('../constants/JarrConstants');
var MenuActions = require('../actions/MenuActions');
var RightPanelActions = {
- loadArticle: function(article_id, was_read_before) {
- jquery.getJSON('/getart/' + article_id,
+ loadArticle: function(article_id, was_read_before, to_parse) {
+ var suffix = '';
+ if(to_parse) {
+ suffix = '/parse';
+ }
+ jquery.getJSON('/getart/' + article_id + suffix,
function(payload) {
JarrDispatcher.dispatch({
type: ActionTypes.LOAD_ARTICLE,
bgstack15