Changeset 889 in subversion


Ignore:
Timestamp:
Oct 20, 2007 1:49:01 PM (6 years ago)
Author:
thomasb
Message:

Fix toggleselect of list widget

File:
1 edited

Legend:

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

    r887 r889  
    345345  if (this.last_selected != 0 && this.rows[this.last_selected]) 
    346346    this.set_classname(this.rows[this.last_selected].obj, 'focused', false); 
    347      
     347 
     348  // unselect if toggleselect is active and the same row was clicked again 
     349  if (this.toggleselect && this.last_selected == id) 
     350  { 
     351    this.clear_selection(); 
     352    id = null; 
     353  } 
     354  else 
     355    this.set_classname(this.rows[id].obj, 'focused', true); 
     356 
    348357  if (!this.selection.length) 
    349358    this.shift_start = null; 
    350359 
    351   if (this.toggleselect && this.last_selected==id) 
    352     this.highlight_row(id, true); 
    353  
    354360  this.last_selected = id; 
    355   this.set_classname(this.rows[id].obj, 'focused', true); 
    356361}, 
    357362 
Note: See TracChangeset for help on using the changeset viewer.