mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
correctly handle error callback (fix #614)
This commit is contained in:
@@ -182,7 +182,7 @@ module.factory('CategoryService', ['$resource', '$http', function($resource, $ht
|
|||||||
var actions = {
|
var actions = {
|
||||||
get : {
|
get : {
|
||||||
method : 'GET',
|
method : 'GET',
|
||||||
ignoreLoadingBar: true,
|
ignoreLoadingBar : true,
|
||||||
params : {
|
params : {
|
||||||
_method : 'get'
|
_method : 'get'
|
||||||
}
|
}
|
||||||
@@ -248,7 +248,10 @@ module.factory('CategoryService', ['$resource', '$http', function($resource, $ht
|
|||||||
_.merge(res.subscriptions, data);
|
_.merge(res.subscriptions, data);
|
||||||
if (success)
|
if (success)
|
||||||
success(data);
|
success(data);
|
||||||
}, error);
|
}, function(data) {
|
||||||
|
if (error)
|
||||||
|
error(data);
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
res.init();
|
res.init();
|
||||||
@@ -265,7 +268,7 @@ module.factory('EntryService', ['$resource', '$http', function($resource, $http)
|
|||||||
},
|
},
|
||||||
mark : {
|
mark : {
|
||||||
method : 'POST',
|
method : 'POST',
|
||||||
ignoreLoadingBar: true,
|
ignoreLoadingBar : true,
|
||||||
params : {
|
params : {
|
||||||
_method : 'mark'
|
_method : 'mark'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user