Changeset 2538 in subversion


Ignore:
Timestamp:
May 26, 2009 3:28:42 AM (4 years ago)
Author:
alec
Message:
  • Add drag cancelling with ESC key (#1484344)
Location:
trunk/roundcubemail
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2537 r2538  
    22=========================== 
    33 
     4- Add drag cancelling with ESC key (#1484344) 
    45- Support initial identity name from virtuser_query (#1484003) 
    56- Added message menu, removed Print and Source buttons 
  • trunk/roundcubemail/program/js/app.js

    r2523 r2538  
    163163          this.message_list.addEventListener('dragstart', function(o){ p.drag_start(o); }); 
    164164          this.message_list.addEventListener('dragmove', function(o, e){ p.drag_move(e); }); 
    165           this.message_list.addEventListener('dragend', function(o){ p.drag_active = false; }); 
     165          this.message_list.addEventListener('dragend', function(o, e){ p.drag_end(e); }); 
    166166          document.onmouseup = function(e){ return p.doc_mouse_up(e); }; 
    167167 
     
    279279          this.contact_list.addEventListener('dragstart', function(o){ p.drag_start(o); }); 
    280280          this.contact_list.addEventListener('dragmove', function(o, e){ p.drag_move(e); }); 
    281           this.contact_list.addEventListener('dragend', function(o){ p.drag_active = false; }); 
     281          this.contact_list.addEventListener('dragend', function(o, e){ p.drag_end(e); }); 
    282282          this.contact_list.init(); 
    283283 
     
    12591259  }; 
    12601260 
     1261  this.drag_end = function(e) 
     1262  { 
     1263    this.drag_active = false; 
     1264 
     1265    // over the folders 
     1266    if (this.gui_objects.folderlist && this.env.folder_coords) { 
     1267      for (var k in this.env.folder_coords) { 
     1268        if (k == this.env.last_folder_target) { 
     1269          $(this.get_folder_li(k)).removeClass('droptarget'); 
     1270          this.env.last_folder_target = null; 
     1271        } 
     1272      } 
     1273    } 
     1274  }; 
     1275   
    12611276  this.drag_move = function(e) 
    12621277  { 
  • trunk/roundcubemail/program/js/list.js

    r2420 r2538  
    626626  var keyCode = rcube_event.get_keycode(e); 
    627627  var mod_key = rcube_event.get_modifier(e); 
     628 
    628629  switch (keyCode) 
    629630  { 
     
    654655  switch (rcube_event.get_keycode(e)) 
    655656  { 
     657    case 27: 
     658      if (this.drag_active) 
     659        this.drag_mouse_up(e); 
    656660    case 40: 
    657661    case 38:  
Note: See TracChangeset for help on using the changeset viewer.