From 75b1a5789b20c5ff22d11a2c100746ac651b1c02 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 24 Apr 2008 13:25:31 +0000 Subject: - fixed blankpage handling in show_contentframe(): don't set display (=none) for blank content --- program/js/app.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 91389415a..0727821c4 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1232,9 +1232,12 @@ function rcube_webmail() var frm; if (this.env.contentframe && (frm = rcube_find_object(this.env.contentframe))) { - if (!show && window.frames[this.env.contentframe] && frames[this.env.contentframe].location.href.indexOf(this.env.blankpage)<0) - frames[this.env.contentframe].location.href = this.env.blankpage; - if (!bw.safari) + if (!show && window.frames[this.env.contentframe]) + { + if (window.frames[this.env.contentframe].location.href.indexOf(this.env.blankpage)<0) + window.frames[this.env.contentframe].location.href = this.env.blankpage; + } + else if (!bw.safari) frm.style.display = show ? 'block' : 'none'; } -- cgit v1.2.3