diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 22:09:18 +0100 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2016-02-02 22:09:18 +0100 |
commit | 5625fb1192243b19ceac9621b003df39542c4c51 (patch) | |
tree | e25f2b4d1ab0bb5e043779fd673b39ce85065e52 /src/web/js/actions | |
parent | adding a confirm modal for deletion (diff) | |
download | newspipe-5625fb1192243b19ceac9621b003df39542c4c51.tar.gz newspipe-5625fb1192243b19ceac9621b003df39542c4c51.tar.bz2 newspipe-5625fb1192243b19ceac9621b003df39542c4c51.zip |
using api and repairing feed page
Diffstat (limited to 'src/web/js/actions')
-rw-r--r-- | src/web/js/actions/RightPanelActions.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/web/js/actions/RightPanelActions.js b/src/web/js/actions/RightPanelActions.js index 489abae4..47adad79 100644 --- a/src/web/js/actions/RightPanelActions.js +++ b/src/web/js/actions/RightPanelActions.js @@ -29,12 +29,8 @@ var RightPanelActions = { 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(); - }, - }); + this._apiReq('PUT', feed_id, 'feed', {error_count: 0, last_error: ''}, + MenuActions.reload); }, }; |