esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhir...@apache.org
Subject svn commit: r932281 - in /incubator/esme/trunk/server/src/main/webapp/scripts: display_messages.js display_single_message.js
Date Fri, 09 Apr 2010 07:51:22 GMT
Author: rhirsch
Date: Fri Apr  9 07:51:21 2010
New Revision: 932281

URL: http://svn.apache.org/viewvc?rev=932281&view=rev
Log:
[ESME-175] IE 7 doesn't work at all with new layout
Messages appear now in IE6

Modified:
    incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js
    incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js

Modified: incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js?rev=932281&r1=932280&r2=932281&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js (original)
+++ incubator/esme/trunk/server/src/main/webapp/scripts/display_messages.js Fri Apr  9 07:51:21
2010
@@ -59,6 +59,9 @@ function displayMessages(msgArray, eleme
       var msgBody = jQuery(cometMsg.text).find('body').html();
       var msgDateObj = new Date(parseInt(cometMsg.when));
       
+      if (!msgBody)
+      	msgBody = cometMsg.text;
+      
       var msgDateStr = prettyDate(msgDateObj);
       
       var msgPool = '';

Modified: incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js?rev=932281&r1=932280&r2=932281&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js (original)
+++ incubator/esme/trunk/server/src/main/webapp/scripts/display_single_message.js Fri Apr
 9 07:51:21 2010
@@ -68,7 +68,12 @@ function displayMessages(msgArray, eleme
     if (jQuery('#'+elementId+' #'+msgId).size() == 0)
     {
       var msgAuthor = cometMsg.author;
-      var msgBody = jQuery(cometMsg.text).find('body').html();
+      var msgText = cometMsg.text
+      var msgBody = jQuery(cometMsg.text).find("body").html();
+      
+      if (!msgBody)
+      	msgBody = cometMsg.text;
+                             
       var msgDateObj = new Date(parseInt(cometMsg.when));
       
       var msgDateStr = prettyDate(msgDateObj);
@@ -136,5 +141,4 @@ function displayMessages(msgArray, eleme
     }
   }
 }
-// ]]>
-
+// ]]>
\ No newline at end of file



Mime
View raw message