- don't set pagetitle in ajax requests

release-0.6
alecpl 15 years ago
parent 14259ce101
commit 1a4fa6fe48

@ -50,9 +50,10 @@ if (!empty($_REQUEST['_search']) && isset($_SESSION['search'][$_REQUEST['_search
// set data source env // set data source env
$OUTPUT->set_env('source', $source ? $source : '0'); $OUTPUT->set_env('source', $source ? $source : '0');
$OUTPUT->set_env('readonly', $CONTACTS->readonly, false); $OUTPUT->set_env('readonly', $CONTACTS->readonly, false);
if(! $OUTPUT->ajax_call) if(! $OUTPUT->ajax_call) {
$OUTPUT->set_env('address_sources', $js_list); $OUTPUT->set_env('address_sources', $js_list);
$OUTPUT->set_pagetitle(rcube_label('addressbook'));
}
function rcmail_directory_list($attrib) function rcmail_directory_list($attrib)
{ {
@ -224,9 +225,6 @@ function rcmail_get_rowcount_text()
return $out; return $out;
} }
$OUTPUT->set_pagetitle(rcube_label('addressbook'));
// register UI objects // register UI objects
$OUTPUT->add_handlers(array( $OUTPUT->add_handlers(array(

Loading…
Cancel
Save