Changeset 5268 in subversion


Ignore:
Timestamp:
Sep 22, 2011 6:04:31 AM (20 months ago)
Author:
alec
Message:
  • Small cleanup + fix: list contacts on when list object is found
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/app.js

    r5267 r5268  
    279279          this.env.contactfolders = $.extend($.extend({}, this.env.address_sources), this.env.contactgroups); 
    280280 
     281        this.enable_command('add', 'import', this.env.writable_source); 
     282        this.enable_command('list', 'listgroup', 'listsearch', 'advanced-search', true); 
     283 
    281284        if (this.gui_objects.contactslist) { 
    282285 
     
    301304 
    302305          this.update_group_commands(); 
     306          this.command('list'); 
    303307        } 
    304308 
     
    320324              this.init_contact_form(); 
    321325        } 
     326 
    322327        if (this.gui_objects.qsearchbox) { 
    323328          this.enable_command('search', 'reset-search', 'moveto', true); 
    324329        } 
    325330 
    326         if (this.contact_list && this.contact_list.rowcount > 0) 
    327           this.enable_command('export', true); 
    328  
    329         this.enable_command('add', 'import', this.env.writable_source); 
    330         this.enable_command('list', 'listgroup', 'listsearch', 'advanced-search', true); 
    331  
    332         // load contacts of selected source 
    333         if (!this.env.action) 
    334           this.command('list', this.env.source); 
    335         break; 
    336  
     331        break; 
    337332 
    338333      case 'settings': 
Note: See TracChangeset for help on using the changeset viewer.