[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
This commit is contained in:
Fabien Meghazi
2011-10-19 12:21:49 +02:00
parent a59a30a088
commit bd6d9a5b98
@@ -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;