[IMP] Do not dismiss server errors on calendar notifications

bzr revid: fme@openerp.com-20140226154727-dafw83hf9b9a8gpz
This commit is contained in:
Fabien Meghazi
2014-02-26 16:47:27 +01:00
parent 30a99471e2
commit 233665197b
@@ -48,12 +48,13 @@ openerp.calendar = function(instance) {
});
}
)
.fail(
// To override error from framework.js in RPC function
function(error, event) {
event.preventDefault();
.fail(function (err, ev) {
if (err.code === -32098) {
// Prevent the CrashManager to display an error
// in case of an xhr error not due to a server error
ev.preventDefault();
}
);
});
},
check_notifications: function() {
var self= this;