diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-26 20:33:15 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-26 20:34:12 +0100 |
commit | 222c7de3e17056657fede666e87133ff1ea15eaf (patch) | |
tree | 51dc2e8f9b1b6c062902e32ae81642c1fc5dbef4 | |
parent | 1d4c84f4d74217a6639b143c14c99e3473fc539a (diff) |
Fix errors in IE8 when opening compose page in new window
-rw-r--r-- | program/js/app.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js index ad82ba579..c19ff62b2 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -319,7 +319,7 @@ function rcube_webmail() } // detect browser capabilities - if (!this.is_framed()) + if (!this.is_framed() && !this.env.extwin) this.browser_capabilities_check(); break; @@ -1642,7 +1642,7 @@ function rcube_webmail() l = (screen.width - w) / 2 + (screen.left || 0), t = Math.max(0, (screen.height - h) / 2 + (screen.top || 0) - 20), wname = 'rcmextwin' + new Date().getTime(), - extwin = window.open(url + '&_extwin=1', wname, + extwin = window.open(url + (url.match(/\?/) ? '&' : '?') + '_extwin=1', wname, 'width='+w+',height='+h+',top='+t+',left='+l+',resizable=yes,toolbar=no,status=no,location=no'); // write loading... message to empty windows |