diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-22 12:57:03 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-08-22 12:57:03 +0000 |
| commit | 02b01e703da02eb5134c31618c2f6a665ca9cfcb (patch) | |
| tree | 0859344151e092bfe914e4806aec2efbc39f7057 /roundcubemail/program/js/app.js | |
| parent | ddcbdace2ec23d743edf5a834b75254c6500a907 (diff) | |
- Prevent from form submit with Enter key in file input fields in Internet Explorer
git-svn-id: https://svn.roundcube.net/trunk@5109 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 808adc575..bbb14e7ad 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -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; |
