[FIX] actually clear basic textual fields in search view when [Clear] button used, don't just reset to default value

lp bug: https://launchpad.net/bugs/1015612 fixed

bzr revid: xmo@openerp.com-20120621095203-oruw1ghlxu2gc7qh
This commit is contained in:
Xavier Morel
2012-06-21 11:52:03 +02:00
parent 4d1eb70d75
commit ff65067f1d
+10
View File
@@ -822,6 +822,16 @@ openerp.web.search.Field = openerp.web.search.Input.extend( /** @lends openerp.w
val);
}
return _.extend({}, domain, {own_values: {self: val}});
},
clear: function () {
if (!this.$element.val()) {
return;
}
var self = this;
setTimeout(function () {
self.$element.val('');
}, 0);
}
});
/**