aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/stores
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/js/stores')
-rw-r--r--src/web/js/stores/MiddlePanelStore.js3
-rw-r--r--src/web/js/stores/RightPanelStore.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/web/js/stores/MiddlePanelStore.js b/src/web/js/stores/MiddlePanelStore.js
index 1a0a4fab..4a5efd00 100644
--- a/src/web/js/stores/MiddlePanelStore.js
+++ b/src/web/js/stores/MiddlePanelStore.js
@@ -119,9 +119,10 @@ MiddlePanelStore.dispatchToken = JarrDispatcher.register(function(action) {
for (var i in MiddlePanelStore._datas.articles) {
if(MiddlePanelStore._datas.articles[i].article_id == action.article.id) {
MiddlePanelStore._datas.articles[i].read = true;
- console.log(MiddlePanelStore._datas.articles[i]);
+ break;
}
}
+ break;
default:
// pass
}
diff --git a/src/web/js/stores/RightPanelStore.js b/src/web/js/stores/RightPanelStore.js
index 68d3b7e9..85f336e4 100644
--- a/src/web/js/stores/RightPanelStore.js
+++ b/src/web/js/stores/RightPanelStore.js
@@ -30,17 +30,19 @@ RightPanelStore.dispatchToken = JarrDispatcher.register(function(action) {
if(action.filter_id == null) {
RightPanelStore._datas.category = null;
RightPanelStore._datas.feed = null;
+ RightPanelStore._datas.current = null;
} else if(action.filter_type == 'category_id') {
RightPanelStore._datas.category = MenuStore._datas.categories[action.filter_id];
RightPanelStore._datas.feed = null;
RightPanelStore._datas.current = 'category';
+ RightPanelStore.emitChange();
} else {
RightPanelStore._datas.feed = MenuStore._datas.feeds[action.filter_id];
RightPanelStore._datas.category = MenuStore._datas.categories[RightPanelStore._datas.feed.category_id];
RightPanelStore._datas.current = 'feed';
+ RightPanelStore.emitChange();
}
- RightPanelStore.emitChange();
break;
case ActionTypes.LOAD_ARTICLE:
RightPanelStore._datas.feed = MenuStore._datas.feeds[action.article.feed_id];
bgstack15