program/include/rcube_template.php
@@ -331,8 +331,12 @@ public function write($template = '') { // unlock interface after iframe load $unlock = preg_replace('/[^a-z0-9]/i', '', $_GET['_unlock']); if ($this->framed) { array_unshift($this->js_commands, array('set_busy', false)); array_unshift($this->js_commands, array('set_busy', false, null, $unlock)); } else if ($unlock) { array_unshift($this->js_commands, array('hide_message', $unlock)); } // write all env variables to client $js = $this->framed ? "if(window.parent) {\n" : '';