From 1a4fa6fe48a0e225f50bc3eb3649496637006695 Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Tue, 25 May 2010 05:20:28 -0400
Subject: [PATCH] - don't set pagetitle in ajax requests
---
program/steps/addressbook/func.inc | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index 0601850..c044fc3 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -50,9 +50,10 @@
// set data source env
$OUTPUT->set_env('source', $source ? $source : '0');
$OUTPUT->set_env('readonly', $CONTACTS->readonly, false);
-if(! $OUTPUT->ajax_call)
+if(! $OUTPUT->ajax_call) {
$OUTPUT->set_env('address_sources', $js_list);
-
+ $OUTPUT->set_pagetitle(rcube_label('addressbook'));
+}
function rcmail_directory_list($attrib)
{
@@ -224,9 +225,6 @@
return $out;
}
-
-
-$OUTPUT->set_pagetitle(rcube_label('addressbook'));
// register UI objects
$OUTPUT->add_handlers(array(
--
Gitblit v1.9.1