summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-05 21:39:08 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-05 21:39:08 +0000
commit38ac1065601a6c780d0092aca93c9d5eeab5b07d (patch)
tree97fd7dcec461507e824ea076471dfac66ae6340c /roundcubemail/program/include
parent9bd59469580d4a090d4af2595e63b20dadf9c0ac (diff)
Applied patch for updating page title (#1484727, #1484650)
git-svn-id: https://svn.roundcube.net/trunk@1019 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcmail_template.inc14
1 files changed, 8 insertions, 6 deletions
diff --git a/roundcubemail/program/include/rcmail_template.inc b/roundcubemail/program/include/rcmail_template.inc
index cc5a58ac1..bfc31d3c0 100644
--- a/roundcubemail/program/include/rcmail_template.inc
+++ b/roundcubemail/program/include/rcmail_template.inc
@@ -312,6 +312,13 @@ class rcmail_template extends rcube_html_page
if (!$this->framed && !empty($this->js_env))
$out .= ($this->ajax_call ? 'this' : JS_OBJECT_NAME) . '.set_env('.json_serialize($this->js_env).");\n";
+ // add command to set page title
+ if ($this->ajax_call && !empty($this->pagetitle))
+ $out .= sprintf(
+ "this.set_pagetitle('%s');\n",
+ JQ((!empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : '') . $this->pagetitle)
+ );
+
foreach ($this->js_commands as $i => $args)
{
$method = array_shift($args);
@@ -326,12 +333,7 @@ class rcmail_template extends rcube_html_page
join(',', $args));
}
- // add command to set page title
- if ($this->ajax_call && !empty($this->pagetitle))
- $out .= sprintf(
- "this.set_pagetitle('%s');\n",
- JQ((!empty($this->config['product_name']) ? $this->config['product_name'].' :: ' : '') . $this->pagetitle)
- );
+
return $out;
}