From bc8dc6573eac40065b115b36c5bcf7f5a0ff8cba Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Thu, 13 Apr 2006 14:07:06 -0400
Subject: [PATCH] Fixed parent.location problem for compose-links

---
 program/js/app.js |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index d2bf41e..60daf8c 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -835,14 +835,17 @@
           }
         else if (props)
            url += '&_to='+props;
-        
+
         // don't know if this is necessary...
         url = url.replace(/&_framed=1/, "");
 
         this.set_busy(true);
 
         // need parent in case we are coming from the contact frame
-        parent.window.location.href = url;
+        if (this.env.framed)
+          parent.location.href = url;
+        else
+          location.href = url;
         break;    
 
       case 'send':

--
Gitblit v1.9.1