aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/js/actions')
-rw-r--r--src/web/js/actions/RightPanelActions.js19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/web/js/actions/RightPanelActions.js b/src/web/js/actions/RightPanelActions.js
index 7a7b935a..6831f9b8 100644
--- a/src/web/js/actions/RightPanelActions.js
+++ b/src/web/js/actions/RightPanelActions.js
@@ -5,15 +5,16 @@ var RightPanelStore = require('../stores/RightPanelStore');
var RightPanelActions = {
- load: function(obj_type, obj_id) {
- filters = MiddlePanelStore.getRequestFilter();
- jquery.getJSON('api/v2.0/' + obj_type + '/' + obj_id, function(payload) {
- _last_fetched_with = filters;
- JarrDispatcher.dispatch({
- type: ActionTypes.LOAD_RIGHT_PANEL,
- articles: payload.articles,
- });
- });
+ loadArticle: function(article_id) {
+ jquery.getJSON('/getart/' + article_id,
+ function(payload) {
+ JarrDispatcher.dispatch({
+ type: ActionTypes.LOAD_ARTICLE,
+ article: payload,
+ });
+ }
+ );
+
},
};
bgstack15