[Svn] r3926 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Mon Aug 30 18:28:27 CEST 2010


Author: alec
Date: 2010-08-30 11:28:26 -0500 (Mon, 30 Aug 2010)
New Revision: 3926

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Fix hide_message() to work when called from an iframe


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2010-08-30 13:08:12 UTC (rev 3925)
+++ trunk/roundcubemail/program/js/app.js	2010-08-30 16:28:26 UTC (rev 3926)
@@ -4516,9 +4516,15 @@
   // make a message row disapear
   this.hide_message = function(fade)
   {
-    if (this.gui_objects.message) {
-      $(this.gui_objects.message).unbind()[(fade?'fadeOut':'hide')]();
-      this.gui_objects.message.__type = null;
+    var msg;
+    if (this.gui_objects.message)
+      msg = this.gui_objects.message;
+    else if (this.env.framed && parent.rcmail)
+      msg = parent.rcmail.gui_objects.message;
+
+    if (msg) {
+      $(msg).unbind()[(fade?'fadeOut':'hide')]();
+      msg.__type = null;
     }
   };
 

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list