summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-01-15 18:18:11 +0100
committerAleksander Machniak <alec@alec.pl>2013-01-17 08:38:40 +0100
commita03c28a22f194c3cbaee46abd8def0d7b8fa7e60 (patch)
treeb90ec6cb175833b3dcaf14a548bca5566e7cdad1 /program/js/app.js
parent2080feca9367c057590835df12f5ebe6da8c1e9c (diff)
Make sure mimetypes is an array not object in a better way
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 6f45cd045..632ee964c 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -820,7 +820,7 @@ function rcube_webmail()
var qstring = '_mbox='+urlencode(this.env.mailbox)+'&_uid='+this.env.uid+'&_part='+props.part;
// open attachment in frame if it's of a supported mimetype
- if (this.env.uid && props.mimetype && this.env.mimetypes && $.inArray(props.mimetype, $.map(this.env.mimetypes, function(v,k){ return v })) >= 0) {
+ if (this.env.uid && props.mimetype && this.env.mimetypes && $.inArray(props.mimetype, this.env.mimetypes) >= 0) {
if (props.mimetype == 'text/html')
qstring += '&_safe=1';
this.attachment_win = window.open(this.env.comm_path+'&_action=get&'+qstring+'&_frame=1', 'rcubemailattachment');