[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:
@@ -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);
|
||||
|
||||
}
|
||||
});
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user