[IMP] On click of + icon close opened card and also open new to add.
bzr revid: bth@tinyerp.com-20130402072153-yj42zsfhq1m0ipr6
This commit is contained in:
parent
d63a858dc5
commit
9e11407553
|
@ -1038,9 +1038,10 @@ instance.web_kanban.QuickCreate = instance.web.Widget.extend({
|
|||
self.quick_add();
|
||||
}
|
||||
});
|
||||
$(".oe_kanban_quick_create").focusout(function () {
|
||||
$(".oe_kanban_quick_create").focusout(function (e) {
|
||||
var val = self.$el.find('input').val()
|
||||
if (/^\s*$/.test(val)) { self.$el.remove(); return; }
|
||||
if (/^\s*$/.test(val)) { self.$el.remove(); }
|
||||
e.stopImmediatePropagation();
|
||||
});
|
||||
$(".oe_kanban_quick_create_add", this.$el).click(function () {
|
||||
self.quick_add();
|
||||
|
|
Loading…
Reference in New Issue