projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a9947
)
[IMP] Do not dismiss server errors on calendar notifications
author
Fabien Meghazi
<fme@openerp.com>
Wed, 26 Feb 2014 15:47:27 +0000
(16:47 +0100)
committer
Fabien Meghazi
<fme@openerp.com>
Wed, 26 Feb 2014 15:47:27 +0000
(16:47 +0100)
bzr revid: fme@openerp.com-
20140226154727
-dafw83hf9b9a8gpz
addons/calendar/static/src/js/base_calendar.js
patch
|
blob
|
history
diff --git
a/addons/calendar/static/src/js/base_calendar.js
b/addons/calendar/static/src/js/base_calendar.js
index
72dee8c
..
eed958e
100644
(file)
--- a/
addons/calendar/static/src/js/base_calendar.js
+++ b/
addons/calendar/static/src/js/base_calendar.js
@@
-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;