Browse Source

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

pull/150/head
Sylvain LE GAL 10 years ago
parent
commit
5d36d5459a
  1. 6
      web_custom_search_quantity/static/src/js/web_custom_search_quantity.js

6
web_custom_search_quantity/static/src/js/web_custom_search_quantity.js

@ -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');
}); });
} }

Loading…
Cancel
Save