[FIX] bug preventing form creation on the fly

bzr revid: fme@openerp.com-20131119104641-8nuihwm2x1xvidhb
This commit is contained in:
Fabien Meghazi 2013-11-19 11:46:41 +01:00
parent 910c2657a9
commit e10188ee59
1 changed files with 1 additions and 0 deletions

View File

@ -211,6 +211,7 @@
if (field.is('input[type="text"], select')) {
field.keypress(function (e) {
if (e.which == 13) {
e.preventDefault();
dialog.find('.btn-primary').trigger('click');
}
});