summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-04-13 18:07:06 +0000
committerthomascube <thomas@roundcube.net>2006-04-13 18:07:06 +0000
commitbc8dc6573eac40065b115b36c5bcf7f5a0ff8cba (patch)
tree1b65152a0b2e40ca6bd875d57b791e71bbc7507a /program/js
parent609a87e83586b3df5aa85a3536becf2bfddaadff (diff)
Fixed parent.location problem for compose-links
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index d2bf41e58..60daf8c32 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -835,14 +835,17 @@ function rcube_webmail()
}
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':