summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-08-22 12:57:03 +0000
committeralecpl <alec@alec.pl>2011-08-22 12:57:03 +0000
commit3ef524d806caf990d6c7c3f64020af53545e849a (patch)
tree65a5aa45ac1af859aa46eaf88d4e3c3a15159fdd /program/js
parent5db6f96d22b14651bc1a90413b57c96411249fb4 (diff)
- Prevent from form submit with Enter key in file input fields in Internet Explorer
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 808adc575..bbb14e7ad 100644
--- a/program/js/app.js
+++ b/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;