summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-25 09:20:28 +0000
committeralecpl <alec@alec.pl>2010-05-25 09:20:28 +0000
commit1a4fa6fe48a0e225f50bc3eb3649496637006695 (patch)
tree6962d01f3bc2245130178c271a675cca611741ca /program
parent14259ce101fc6e7b5afa2bac325ae472f09cdba0 (diff)
- don't set pagetitle in ajax requests
Diffstat (limited to 'program')
-rw-r--r--program/steps/addressbook/func.inc8
1 files changed, 3 insertions, 5 deletions
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index 060185010..c044fc331 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -50,9 +50,10 @@ if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search
// 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 @@ function rcmail_get_rowcount_text()
return $out;
}
-
-
-$OUTPUT->set_pagetitle(rcube_label('addressbook'));
// register UI objects
$OUTPUT->add_handlers(array(