mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] UX. add focus and validation on enter;
This commit is contained in:
@@ -68,6 +68,12 @@ openerp.web_custom_search_quantity = function (instance) {
|
||||
}).blur(function() {
|
||||
$(this).trigger('change');
|
||||
})
|
||||
.keypress(function(e) {
|
||||
if(e.which == 13) {
|
||||
$(this).trigger('change');
|
||||
}
|
||||
})
|
||||
.focus()
|
||||
.val(self._limit || '0');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user