[Vtigercrm-commits] [vtiger-commits] r9854 - /vtigercrm/branches/5.0.3/modules/Webmails/webmails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Nov 17 06:46:10 EST 2006
Author: richie
Date: Fri Nov 17 04:46:05 2006
New Revision: 9854
Log:
Fix for Webmails body display in IE. Fixes #2298
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/webmails.js
Modified: vtigercrm/branches/5.0.3/modules/Webmails/webmails.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/webmails.js (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/webmails.js Fri Nov 17 04:46:05 2006
@@ -27,9 +27,17 @@
$("webmail_subject").innerHTML = " "+webmail[mid]["subject"];
$("webmail_date").innerHTML = " "+webmail[mid]["date"];
- $("body_area").removeChild($("body_area").firstChild);
- $("body_area").appendChild(Builder.node('iframe',{src: 'index.php?module=Webmails&action=body&mailid='+mid+'&mailbox='+mailbox, width: '100%', height: '210', frameborder: '0'},'You must enable iframes'));
-
+ //Fix for webmails body display in IE - dartagnanlaf
+ new Ajax.Request(
+ 'index.php',
+ {queue: {position: 'end', scope: 'command'},
+ method: 'post',
+ postBody: 'module=Webmails&action=body&mailid=' + mid + '&mailbox='+mailbox,
+ onComplete: function(response) {
+ document.getElementById("body_area").innerHTML=response.responseText;
+ }
+ }
+ );
tmp = document.getElementsByClassName("previewWindow");
for(var i=0;i<tmp.length;i++) {
if(tmp[i].style.visibility === "hidden") {
More information about the vtigercrm-commits
mailing list