3
0
Fork 0

[IMP] UX. add focus and validation on enter;

7.0
Sylvain LE GAL 2015-06-08 02:00:03 +02:00
parent f97885a057
commit 043766536d
1 changed files with 6 additions and 0 deletions

View File

@ -68,6 +68,12 @@ openerp.web_custom_search_quantity = function (instance) {
}).blur(function() { }).blur(function() {
$(this).trigger('change'); $(this).trigger('change');
}) })
.keypress(function(e) {
if(e.which == 13) {
$(this).trigger('change');
}
})
.focus()
.val(self._limit || '0'); .val(self._limit || '0');
}); });
} }