diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-08-30 16:28:26 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-08-30 16:28:26 +0000 |
| commit | 8356378bc5b109146fbaf5006a97e3bf597092bc (patch) | |
| tree | 7ff0d1d8c44456d433df72d9006c399303adcda8 | |
| parent | 03653aaf15863377d5e7492291631dba24b90201 (diff) | |
- Fix hide_message() to work when called from an iframe
git-svn-id: https://svn.roundcube.net/trunk@3926 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/program/js/app.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 7df194253..48e05f44f 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -4516,9 +4516,15 @@ function rcube_webmail() // 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; } }; |
