diff options
author | thomascube <thomas@roundcube.net> | 2007-09-19 06:48:18 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2007-09-19 06:48:18 +0000 |
commit | 4d0413dd899f9407bf44c563924324e56945981f (patch) | |
tree | 85e5d9d77408c40b886b26ee90e294ad6e8c8d13 /program | |
parent | 5eee009671d773cb3ebef5beca6ad47c919ac4c7 (diff) |
Unlock interface when message sending fails (#1484570)
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcmail_template.inc | 6 | ||||
-rw-r--r-- | program/js/app.js | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/program/include/rcmail_template.inc b/program/include/rcmail_template.inc index 734032e9e..15752f8bc 100644 --- a/program/include/rcmail_template.inc +++ b/program/include/rcmail_template.inc @@ -242,6 +242,10 @@ class rcmail_template extends rcube_html_page */ function write($template='') { + // unlock interface after iframe load + if ($this->framed) + array_unshift($this->js_commands, array('set_busy', false)); + // write all env variables to client $js = $this->framed ? "if(window.parent) {\n" : ''; $js .= $this->get_js_commands() . ($this->framed ? ' }' : ''); @@ -305,7 +309,7 @@ class rcmail_template extends rcube_html_page function get_js_commands() { $out = ''; - if (!$this->framed) + if (!$this->framed && !empty($this->js_env)) $out .= ($this->ajax_call ? 'this' : JS_OBJECT_NAME) . '.set_env('.json_serialize($this->js_env).");\n"; foreach ($this->js_commands as $i => $args) diff --git a/program/js/app.js b/program/js/app.js index 9693ff53d..1711ab592 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -804,6 +804,7 @@ function rcube_webmail() this.set_busy(true, 'savingmessage'); var form = this.gui_objects.messageform; form.target = "savetarget"; + form._draft.value = '1'; form.submit(); break; |