summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2015-03-16 16:30:54 +0100
committerChristophe Simonis <chs@odoo.com>2015-03-16 16:35:55 +0100
commit24e2cc5b44d23af033962e7219a60c3142d0fcbd (patch)
treeb763fff42d8af9d9ecaffba8c9088b09db8dab29 /addons
parent6922ec6123ba93effb25457d2e4794cdb132dc16 (diff)
[FIX] web_calendar: do not use magic var `event`.
It works in Chrome, but not in Firefox.
Diffstat (limited to 'addons')
-rw-r--r--addons/web_calendar/static/src/js/web_calendar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_calendar/static/src/js/web_calendar.js b/addons/web_calendar/static/src/js/web_calendar.js
index 5b66c996125..056f36fda33 100644
--- a/addons/web_calendar/static/src/js/web_calendar.js
+++ b/addons/web_calendar/static/src/js/web_calendar.js
@@ -1008,7 +1008,7 @@ openerp.web_calendar = function(instance) {
})
.open();
this.$input = this.$dialog.$('input').keyup(function enterHandler (e) {
- if(event.keyCode == 13){
+ if(e.keyCode == 13){
self.$input.off('keyup', enterHandler);
if (!self.quick_add()){
self.$input.on('keyup', enterHandler);