Changeset a945da6 in github


Ignore:
Timestamp:
Apr 8, 2012 12:42:50 PM (14 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
a274fb2e
Parents:
1b30a71
Message:
  • Fix identation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    r1b30a71 ra945da6  
    21272127    while (new_row) { 
    21282128      if (new_row.nodeType == 1 && (r = this.message_list.rows[new_row.uid]) && r.unread_children) { 
    2129             this.message_list.expand_all(r); 
    2130             this.set_unread_children(r.uid); 
     2129        this.message_list.expand_all(r); 
     2130        this.set_unread_children(r.uid); 
    21312131      } 
    21322132      new_row = new_row.nextSibling; 
     
    23132313    while (row) { 
    23142314      if (row.nodeType == 1 && (r = rows[row.uid])) { 
    2315             if (!r.depth || r.depth <= depth) 
    2316               break; 
    2317  
    2318             r.depth--; // move left 
     2315        if (!r.depth || r.depth <= depth) 
     2316          break; 
     2317 
     2318        r.depth--; // move left 
    23192319        // reset width and clear the content of a tab, icons will be added later 
    2320             $('#rcmtab'+r.uid).width(r.depth * 15).html(''); 
     2320        $('#rcmtab'+r.uid).width(r.depth * 15).html(''); 
    23212321        if (!r.depth) { // a new root 
    2322               count++; // increase roots count 
    2323               r.parent_uid = 0; 
    2324               if (r.has_children) { 
    2325                 // replace 'leaf' with 'collapsed' 
    2326                 $('#rcmrow'+r.uid+' '+'.leaf:first') 
     2322          count++; // increase roots count 
     2323          r.parent_uid = 0; 
     2324          if (r.has_children) { 
     2325            // replace 'leaf' with 'collapsed' 
     2326            $('#rcmrow'+r.uid+' '+'.leaf:first') 
    23272327              .attr('id', 'rcmexpando' + r.uid) 
    2328                   .attr('class', (r.obj.style.display != 'none' ? 'expanded' : 'collapsed')) 
    2329               .bind('mousedown', {uid:r.uid, p:this}, 
    2330                     function(e) { return e.data.p.expand_message_row(e, e.data.uid); }); 
    2331  
    2332                 r.unread_children = 0; 
    2333                 roots.push(r); 
    2334               } 
    2335               // show if it was hidden 
    2336               if (r.obj.style.display == 'none') 
    2337                 $(r.obj).show(); 
    2338             } 
    2339             else { 
    2340               if (r.depth == depth) 
    2341                 r.parent_uid = parent; 
    2342               if (r.unread && roots.length) 
    2343                 roots[roots.length-1].unread_children++; 
    2344             } 
    2345           } 
    2346           row = row.nextSibling; 
     2328              .attr('class', (r.obj.style.display != 'none' ? 'expanded' : 'collapsed')) 
     2329              .bind('mousedown', {uid:r.uid, p:this}, 
     2330                function(e) { return e.data.p.expand_message_row(e, e.data.uid); }); 
     2331 
     2332            r.unread_children = 0; 
     2333            roots.push(r); 
     2334          } 
     2335          // show if it was hidden 
     2336          if (r.obj.style.display == 'none') 
     2337            $(r.obj).show(); 
     2338        } 
     2339        else { 
     2340          if (r.depth == depth) 
     2341            r.parent_uid = parent; 
     2342          if (r.unread && roots.length) 
     2343            roots[roots.length-1].unread_children++; 
     2344        } 
     2345      } 
     2346      row = row.nextSibling; 
    23472347    } 
    23482348 
     
    23632363    while (row) { 
    23642364      if (row.nodeType == 1 && (r = rows[row.uid])) { 
    2365             if (!r.depth && cnt) 
    2366               cnt--; 
     2365        if (!r.depth && cnt) 
     2366          cnt--; 
    23672367 
    23682368        if (!cnt) 
    2369               this.message_list.remove_row(row.uid); 
    2370           } 
    2371           row = row.nextSibling; 
     2369          this.message_list.remove_row(row.uid); 
     2370      } 
     2371      row = row.nextSibling; 
    23722372    } 
    23732373  }; 
     
    28062806          r_uids[r_uids.length] = uid; 
    28072807 
    2808             if (this.env.skip_deleted) { 
    2809               count += this.update_thread(uid); 
     2808        if (this.env.skip_deleted) { 
     2809          count += this.update_thread(uid); 
    28102810          this.message_list.remove_row(uid, (this.env.display_next && i == this.message_list.selection.length-1)); 
    2811             } 
    2812             else 
    2813               this.set_message(uid, 'deleted', true); 
     2811        } 
     2812        else 
     2813          this.set_message(uid, 'deleted', true); 
    28142814      } 
    28152815    } 
     
    30143014      .attr('autocomplete', 'off'); 
    30153015  }; 
    3016    
     3016 
    30173017  this.compose_recipient_select = function(list) 
    30183018  { 
     
    30233023  { 
    30243024    var recipients = [], input = $('#_'+field); 
    3025      
     3025 
    30263026    if (this.contact_list && this.contact_list.selection.length) { 
    30273027      for (var id, n=0; n < this.contact_list.selection.length; n++) { 
     
    63416341rcube_webmail.prototype.removeEventListener = rcube_event_engine.prototype.removeEventListener; 
    63426342rcube_webmail.prototype.triggerEvent = rcube_event_engine.prototype.triggerEvent; 
    6343  
Note: See TracChangeset for help on using the changeset viewer.