[IMP] Kanban: If no draghandle is found, make the whole card as draghandle

bzr revid: fme@openerp.com-20120522143235-hores2mntqc82lde
This commit is contained in:
Fabien Meghazi 2012-05-22 16:32:35 +02:00
parent 0aa18780d2
commit cba255384f
1 changed files with 5 additions and 0 deletions

View File

@ -578,6 +578,11 @@ instance.web_kanban.KanbanRecord = instance.web.OldWidget.extend({
trigger: 'hover'
});
// If no draghandle is found, make the whole card as draghandle
if (!this.$element.find('.oe_kanban_draghandle').length) {
this.$element.children(':first').addClass('oe_kanban_draghandle');
}
this.$element.find('.oe_kanban_action').click(function(ev) {
ev.preventDefault();
var $action = $(this),