blob: c60bffcf853173e1b3ade46affc5033330346913 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
var JarrDispatcher = require('../dispatcher/JarrDispatcher');
var ActionTypes = require('../constants/JarrConstants');
var jquery = require('jquery');
var RightPanelActions = {
loadArticle: function(article_id, was_read_before) {
jquery.getJSON('/getart/' + article_id,
function(payload) {
JarrDispatcher.dispatch({
type: ActionTypes.LOAD_ARTICLE,
article: payload,
was_read_before: was_read_before,
});
}
);
},
};
module.exports = RightPanelActions;
|