Changeset 5153 in subversion


Ignore:
Timestamp:
Sep 2, 2011 2:45:39 AM (21 months ago)
Author:
alec
Message:
  • Fix error in messages drag&drop action caused by r5146
File:
1 edited

Legend:

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

    r5146 r5153  
    12141214  { 
    12151215    var modkey = rcube_event.get_modifier(e), 
    1216       menu = $('#'+this.gui_objects.message_dragmenu); 
     1216      menu = this.gui_objects.message_dragmenu; 
    12171217 
    12181218    if (menu && modkey == SHIFT_KEY && this.commands['copy']) { 
    12191219      var pos = rcube_event.get_mouse_pos(e); 
    12201220      this.env.drag_target = target; 
    1221       menu.css({top: (pos.y-10)+'px', left: (pos.x-10)+'px'}).show(); 
     1221      $(menu).css({top: (pos.y-10)+'px', left: (pos.x-10)+'px'}).show(); 
    12221222      return true; 
    12231223    } 
     
    12281228  this.drag_menu_action = function(action) 
    12291229  { 
    1230     var menu = $('#'+this.gui_objects.message_dragmenu); 
     1230    var menu = this.gui_objects.message_dragmenu; 
    12311231    if (menu) { 
    1232       menu.hide(); 
     1232      $(menu).hide(); 
    12331233    } 
    12341234    this.command(action, this.env.drag_target); 
Note: See TracChangeset for help on using the changeset viewer.