- Prevent from form submit with Enter key in file input fields in Internet Explorer

release-0.7
alecpl 13 years ago
parent 5db6f96d22
commit 3ef524d806

@ -402,6 +402,10 @@ function rcube_webmail()
break;
}
// prevent from form submit with Enter key in file input fields
if (bw.ie)
$('input[type=file]').keydown(function(e) { if (e.keyCode == '13') e.preventDefault(); });
// flag object as complete
this.loaded = true;

Loading…
Cancel
Save