[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:
parent
0aa18780d2
commit
cba255384f
|
@ -578,6 +578,11 @@ instance.web_kanban.KanbanRecord = instance.web.OldWidget.extend({
|
||||||
trigger: 'hover'
|
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) {
|
this.$element.find('.oe_kanban_action').click(function(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
var $action = $(this),
|
var $action = $(this),
|
||||||
|
|
Loading…
Reference in New Issue