[FIX] Fixed global click

bzr revid: fme@openerp.com-20120607085451-btmj2plke1gt5j49
This commit is contained in:
Fabien Meghazi 2012-06-07 10:54:51 +02:00
parent 261c85c826
commit afd1f6bfe9
1 changed files with 3 additions and 1 deletions

View File

@ -632,7 +632,9 @@ instance.web_kanban.KanbanRecord = instance.web.OldWidget.extend({
return false;
});
this.$element.find('.oe_kanban_global_click').on('click', this.on_card_clicked);
if (this.$element.find('.oe_kanban_global_click').length) {
this.$element.on('click', this.on_card_clicked);
}
},
on_card_clicked: function() {
this.view.trigger('hide_menus');