diff options
| author | Christophe Simonis <chs@odoo.com> | 2015-03-16 16:30:54 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2015-03-16 16:35:55 +0100 |
| commit | 24e2cc5b44d23af033962e7219a60c3142d0fcbd (patch) | |
| tree | b763fff42d8af9d9ecaffba8c9088b09db8dab29 | |
| parent | 6922ec6123ba93effb25457d2e4794cdb132dc16 (diff) | |
[FIX] web_calendar: do not use magic var `event`.
It works in Chrome, but not in Firefox.
| -rw-r--r-- | addons/web_calendar/static/src/js/web_calendar.js | 2 |
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); |
