Changeset fb46638 in github


Ignore:
Timestamp:
May 25, 2010 3:49:30 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
3831efb
Parents:
50067d5
Message:
  • code cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    r50067d5 rfb46638  
    205205 
    206206          if (this.env.next_uid) { 
    207             this.enable_command('nextmessage', true); 
    208             this.enable_command('lastmessage', true); 
     207            this.enable_command('nextmessage', 'lastmessage', true); 
    209208          } 
    210209          if (this.env.prev_uid) { 
    211             this.enable_command('previousmessage', true); 
    212             this.enable_command('firstmessage', true); 
     210            this.enable_command('previousmessage', 'firstmessage', true); 
    213211          } 
    214212 
     
    327325          this.enable_command('subscribe', 'unsubscribe', 'create-folder', 'rename-folder', 'delete-folder', 'enable-threading', 'disable-threading', true); 
    328326 
    329         if (this.gui_objects.identitieslist) 
    330           { 
     327        if (this.gui_objects.identitieslist) { 
    331328          this.identity_list = new rcube_list_widget(this.gui_objects.identitieslist, {multiselect:false, draggable:false, keyboard:false}); 
    332329          this.identity_list.addEventListener('select', function(o){ p.identity_select(o); }); 
     
    336333          if (this.env.iid) 
    337334            this.identity_list.highlight_row(this.env.iid); 
    338           } 
    339         else if (this.gui_objects.sectionslist) 
    340           { 
     335        } 
     336        else if (this.gui_objects.sectionslist) { 
    341337          this.sections_list = new rcube_list_widget(this.gui_objects.sectionslist, {multiselect:false, draggable:false, keyboard:false}); 
    342338          this.sections_list.addEventListener('select', function(o){ p.section_select(o); }); 
     
    10741070    if (a && message) { 
    10751071      var msg = this.get_label(message); 
    1076       if (msg == message)         
     1072      if (msg == message) 
    10771073        msg = 'Loading...'; 
    10781074 
     
    20292025      } 
    20302026    } 
    2031   };                                               
     2027  }; 
    20322028 
    20332029  // adds tree icons to specified message row 
     
    20492045        divs.push({'class': null, width: 15}); 
    20502046    } 
    2051      
     2047 
    20522048    for (i=divs.length-1; i>=0; i--) { 
    20532049      if (divs[i]['class']) 
     
    20562052        html += '<div style="width:'+divs[i].width+'px" />'; 
    20572053    } 
    2058      
     2054 
    20592055    if (html) 
    20602056      $('#rcmtab'+uid).html(html); 
     
    26912687  this.purge_mailbox_test = function() 
    26922688  { 
    2693     return (this.env.messagecount && (this.env.mailbox == this.env.trash_mailbox || this.env.mailbox == this.env.junk_mailbox  
    2694       || this.env.mailbox.match('^' + RegExp.escape(this.env.trash_mailbox) + RegExp.escape(this.env.delimiter))  
     2689    return (this.env.messagecount && (this.env.mailbox == this.env.trash_mailbox || this.env.mailbox == this.env.junk_mailbox 
     2690      || this.env.mailbox.match('^' + RegExp.escape(this.env.trash_mailbox) + RegExp.escape(this.env.delimiter)) 
    26952691      || this.env.mailbox.match('^' + RegExp.escape(this.env.junk_mailbox) + RegExp.escape(this.env.delimiter)))); 
    26962692  }; 
     
    38203816 
    38213817      this.name_input.remove(); 
    3822        
     3818 
    38233819      if (this.name_input_li) 
    38243820        this.name_input_li.remove(); 
    3825        
     3821 
    38263822      this.name_input = this.name_input_li = null; 
    38273823    } 
     
    43114307  this.set_page_buttons = function() 
    43124308  { 
    4313     this.enable_command('nextpage', (this.env.pagecount > this.env.current_page)); 
    4314     this.enable_command('lastpage', (this.env.pagecount > this.env.current_page)); 
    4315     this.enable_command('previouspage', (this.env.current_page > 1)); 
    4316     this.enable_command('firstpage', (this.env.current_page > 1)); 
     4309    this.enable_command('nextpage', 'lastpage', (this.env.pagecount > this.env.current_page)); 
     4310    this.enable_command('previouspage', 'firstpage', (this.env.current_page > 1)); 
    43174311  }; 
    43184312 
Note: See TracChangeset for help on using the changeset viewer.