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/MenuActions.js2
-rw-r--r--src/web/js/actions/RightPanelActions.js9
2 files changed, 11 insertions, 0 deletions
diff --git a/src/web/js/actions/MenuActions.js b/src/web/js/actions/MenuActions.js
index fa30474e..027a3d37 100644
--- a/src/web/js/actions/MenuActions.js
+++ b/src/web/js/actions/MenuActions.js
@@ -12,6 +12,8 @@ var MenuActions = {
feeds: payload.feeds,
categories: payload.categories,
is_admin: payload.is_admin,
+ max_error: payload.max_error,
+ error_threshold: payload.error_threshold,
crawling_method: payload.crawling_method,
all_unread_count: payload.all_unread_count,
});
diff --git a/src/web/js/actions/RightPanelActions.js b/src/web/js/actions/RightPanelActions.js
index 838690d1..489abae4 100644
--- a/src/web/js/actions/RightPanelActions.js
+++ b/src/web/js/actions/RightPanelActions.js
@@ -28,6 +28,15 @@ var RightPanelActions = {
delObj: function(id, obj_type, fields) {
this._apiReq('DELETE', id, obj_type, null, MenuActions.reload);
},
+ resetErrors: function(feed_id) {
+ jquery.ajax({type: 'GET',
+ url: "feed/reset_errors/" + feed_id,
+ success: function() {
+ MenuActions.reload();
+ },
+ });
+
+ },
};
module.exports = RightPanelActions;
bgstack15