diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-11-17 18:06:21 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-11-17 18:06:21 +0100 |
commit | e21c07038e74afe8e36a86853886d994bbfc7c68 (patch) | |
tree | ea835feb8b239463b7c0f79f8dac9740cd7044e1 /program/js/app.js | |
parent | 3bf7310fa35ea3670b528af74de3c07ab31e1226 (diff) |
Use jQuery functions to maximize compatibility with all IE versions
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js index 94c6a898c..810b154ab 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -818,7 +818,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 && $.map(this.env.mimetypes, function(v,k){ return v }).indexOf(props.mimetype) >= 0) { + if (this.env.uid && props.mimetype && this.env.mimetypes && $.inArray(props.mimetype, $.map(this.env.mimetypes, function(v,k){ return v })) >= 0) { if (props.mimetype == 'text/html') qstring += '&_safe=1'; this.attachment_win = window.open(this.env.comm_path+'&_action=get&'+qstring+'&_frame=1', 'rcubemailattachment'); |