[FIX] Clicking a card from a kanban view scrolls the page down

bzr revid: fme@openerp.com-20120912111057-rlvml5v1cqslgwtq
This commit is contained in:
Fabien Meghazi 2012-09-12 13:10:57 +02:00
parent 9511db2416
commit 66a65ab12b
1 changed files with 2 additions and 1 deletions

View File

@ -742,7 +742,8 @@ instance.web_kanban.KanbanRecord = instance.web.Widget.extend({
.toggleClass('oe_kanban_draghandle', this.view.is_action_enabled('edit'));
}
this.$el.find('.oe_kanban_action').click(function() {
this.$el.find('.oe_kanban_action').click(function(ev) {
ev.preventDefault();
var $action = $(this),
type = $action.data('type') || 'button',
method = 'do_action_' + (type === 'action' ? 'object' : type);