[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:
bth-openerp 2013-04-02 12:51:53 +05:30
parent d63a858dc5
commit 9e11407553
1 changed files with 3 additions and 2 deletions

View File

@ -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();