From bd6d9a5b98786e1c3b6ba5b004b25bcf76cab4b8 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Wed, 19 Oct 2011 12:21:49 +0200 Subject: [PATCH] [FIX] web calendar: Cannot open calendar item by double clicking lp bug: https://launchpad.net/bugs/2365 fixed bzr revid: fme@openerp.com-20111019102149-ezfj2apvdk79ux0d --- addons/web_calendar/static/src/js/calendar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/web_calendar/static/src/js/calendar.js b/addons/web_calendar/static/src/js/calendar.js index 2cc0cae1392..e98a3620eb0 100644 --- a/addons/web_calendar/static/src/js/calendar.js +++ b/addons/web_calendar/static/src/js/calendar.js @@ -267,12 +267,14 @@ openerp.web_calendar.CalendarView = openerp.web.View.extend({ } }, do_edit_event: function(event_id) { + var self = this; event_id = parseInt(event_id, 10); var index = _.indexOf(this.dataset.ids, event_id); if (index > -1) { this.dataset.index = index; - this.form_dialog.form.do_show(); - this.form_dialog.open(); + this.form_dialog.form.do_show().then(function() { + self.form_dialog.open(); + }); return false; } return true;