summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2012-07-11 15:35:34 +0200
committerThomas Bruederli <thomas@roundcube.net>2012-07-11 15:35:34 +0200
commit9d72713987bb990b40cb51199fc4effcc5c2772e (patch)
tree53f89cde490f9f96d04ad34e86aa7c16ca695e3d /program/js/app.js
parent1c079c1ace959266ab6b2f6c5df5f397a5ccdee0 (diff)
Fix drag&drop feature test on IE7
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index ca77a8dc4..11f18af1c 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -461,7 +461,7 @@ function rcube_webmail()
this.gui_containers.foldertray = $(this.gui_objects.folderlist);
// activate html5 file drop feature (if browser supports it and if configured)
- if (this.gui_objects.filedrop && this.env.filedrop && ((XMLHttpRequest && XMLHttpRequest.prototype.sendAsBinary) || window.FormData)) {
+ if (this.gui_objects.filedrop && this.env.filedrop && ((window.XMLHttpRequest && XMLHttpRequest.prototype && XMLHttpRequest.prototype.sendAsBinary) || window.FormData)) {
$(document.body).bind('dragover dragleave drop', function(e){ return ref.document_drag_hover(e, e.type == 'dragover'); });
$(this.gui_objects.filedrop).addClass('droptarget')
.bind('dragover dragleave', function(e){ return ref.file_drag_hover(e, e.type == 'dragover'); })