From 9fe0de0758985ef0744a0f1f4ef0d08e70df6fbf Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Sun, 11 Oct 2009 16:06:36 -0600 Subject: [PATCH] Show loading text before iframe content is injected --- imp/js/imp.js | 1 + imp/lib/Mime/Viewer/Html.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/imp/js/imp.js b/imp/js/imp.js index c0fa9351a..8456e2887 100644 --- a/imp/js/imp.js +++ b/imp/js/imp.js @@ -93,6 +93,7 @@ document.observe('dom:loaded', function() { d.write(data); d.close(); + id.show().previous().remove(); this.iframeResize(id); }; diff --git a/imp/lib/Mime/Viewer/Html.php b/imp/lib/Mime/Viewer/Html.php index a81d8367a..ad55a9cbd 100644 --- a/imp/lib/Mime/Viewer/Html.php +++ b/imp/lib/Mime/Viewer/Html.php @@ -118,7 +118,7 @@ class IMP_Horde_Mime_Viewer_Html extends Horde_Mime_Viewer_Html $uid = 'htmldata_' . uniqid(mt_rand()); $data['js'] = array('IMP.iframeInject("' . $uid . '", ' . Horde_Serialize::serialize($data['data'], Horde_Serialize::JSON, $this->_mimepart->getCharset()) . ')'); - $data['data'] = '' . + $data['data'] = '
' . _("Loading...") . '
' . Horde_Util::bufferOutput(array('Horde', 'addScriptFile'), 'imp.js', 'imp'); $data['type'] = 'text/html; charset=UTF-8'; -- 2.11.0