From 54cc75f28d75d01eb10c0be51e42e468f30c3956 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Sat, 17 Nov 2012 11:48:31 -0500
Subject: [PATCH] Cast mimetypes property into an array on IE

---
 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 9b33c4e..94c6a89 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -818,7 +818,7 @@
         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, this.env.mimetypes)>=0) {
+        if (this.env.uid && props.mimetype && this.env.mimetypes && $.map(this.env.mimetypes, function(v,k){ return v }).indexOf(props.mimetype) >= 0) {
           if (props.mimetype == 'text/html')
             qstring += '&_safe=1';
           this.attachment_win = window.open(this.env.comm_path+'&_action=get&'+qstring+'&_frame=1', 'rcubemailattachment');

--
Gitblit v1.9.1