Changeset 465d38b in github


Ignore:
Timestamp:
Jun 19, 2009 11:28:53 AM (4 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
5302a93
Parents:
2f14293
Message:

Also trigger 'insertrow' event when list is initialized on page load (#1485826)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    r3a2b270 r465d38b  
    190190          { 
    191191          this.enable_command('show', 'reply', 'reply-all', 'forward', 'moveto', 'delete', 
    192             'open', 'mark', 'edit', 'viewsource', 'download', 'print', 'load-attachment', 'load-headers', true); 
     192            'open', 'mark', 'edit', 'viewsource', 'download', 'print', 'load-attachment', 'load-headers', true); 
    193193 
    194194          if (this.env.next_uid) 
     
    203203            } 
    204204         
    205           if (this.env.blockedobjects) 
     205          if (this.env.blockedobjects) 
    206206            { 
    207207            if (this.gui_objects.remoteobjectsmsg) 
     
    278278          { 
    279279          this.contact_list = new rcube_list_widget(this.gui_objects.contactslist, {multiselect:true, draggable:true, keyboard:true}); 
     280          this.contact_list.row_init = function(row){ p.triggerEvent('insertrow', { cid:row.uid, row:row }); }; 
    280281          this.contact_list.addEventListener('keypress', function(o){ p.contactlist_keypress(o); }); 
    281282          this.contact_list.addEventListener('select', function(o){ p.contactlist_select(o); }); 
     
    442443      row.flagged_icon.onmousedown = function(e) { p.command('toggle_flag', this); }; 
    443444      } 
     445       
     446    this.triggerEvent('insertrow', { uid:uid, row:row }); 
    444447  }; 
    445448 
     
    36223625 
    36233626    this.message_list.insert_row(row, attop); 
    3624     this.triggerEvent('insertrow', { uid:uid, row:row }); 
    36253627 
    36263628    // remove 'old' row 
     
    37653767     
    37663768    this.contact_list.insert_row(row); 
    3767     this.triggerEvent('insertrow', { cid:cid, row:row }); 
    37683769     
    37693770    this.enable_command('export', (this.contact_list.rowcount > 0)); 
Note: See TracChangeset for help on using the changeset viewer.