[IMP] Improve code to close card on click.
bzr revid: bth@tinyerp.com-20130402092919-81223667i399aksj
This commit is contained in:
parent
9e11407553
commit
7e05448204
|
@ -1040,7 +1040,7 @@ instance.web_kanban.QuickCreate = instance.web.Widget.extend({
|
|||
});
|
||||
$(".oe_kanban_quick_create").focusout(function (e) {
|
||||
var val = self.$el.find('input').val()
|
||||
if (/^\s*$/.test(val)) { self.$el.remove(); }
|
||||
if (/^\s*$/.test(val)) { self.trigger('close'); }
|
||||
e.stopImmediatePropagation();
|
||||
});
|
||||
$(".oe_kanban_quick_create_add", this.$el).click(function () {
|
||||
|
|
Loading…
Reference in New Issue