From 75b1a5789b20c5ff22d11a2c100746ac651b1c02 Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Thu, 24 Apr 2008 09:25:31 -0400 Subject: [PATCH] - fixed blankpage handling in show_contentframe(): don't set display (=none) for blank content --- program/js/app.js | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 9138941..0727821 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1232,9 +1232,12 @@ 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'; } -- Gitblit v1.9.1