svncommit
2006-01-08 c0da982d9e11bb80ec9948e89ccdb55b90bc77e3
disable ldap search button if no servers configured


2 files modified
10 ■■■■■ changed files
program/js/app.js 5 ●●●● patch | view | raw | blame | history
program/steps/addressbook/func.inc 5 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -177,7 +177,10 @@
        if ((this.env.action=='add' || this.env.action=='edit') && this.gui_objects.editform)
          this.enable_command('save', true);
      
        this.enable_command('list', 'add', 'ldappublicsearch', true);
        this.enable_command('list', 'add', true);
        this.enable_command('ldappublicsearch', this.env.ldappublicsearch);
        break;
program/steps/addressbook/func.inc
@@ -30,7 +30,12 @@
else
  $CONTACTS_LIST['page'] = $_SESSION['page'] ? $_SESSION['page'] : 1;
// disable the ldap public search button if there's no servers configured
$enable_ldap = 'true';
if (!$CONFIG['ldap_public'])
  $enable_ldap = 'false';
$OUTPUT->add_script("$JS_OBJECT_NAME.set_env('ldappublicsearch', $enable_ldap);");
// return the message list as HTML table
function rcmail_contacts_list($attrib)