[Svn] r5153 - trunk/roundcubemail/program/js

trac at roundcube.net trac at roundcube.net
Fri Sep 2 08:45:40 CEST 2011


Author: alec
Date: 2011-09-02 01:45:39 -0500 (Fri, 02 Sep 2011)
New Revision: 5153

Modified:
   trunk/roundcubemail/program/js/app.js
Log:
- Fix error in messages drag&drop action caused by r5146


Modified: trunk/roundcubemail/program/js/app.js
===================================================================
--- trunk/roundcubemail/program/js/app.js	2011-08-31 13:36:27 UTC (rev 5152)
+++ trunk/roundcubemail/program/js/app.js	2011-09-02 06:45:39 UTC (rev 5153)
@@ -1213,12 +1213,12 @@
   this.drag_menu = function(e, target)
   {
     var modkey = rcube_event.get_modifier(e),
-      menu = $('#'+this.gui_objects.message_dragmenu);
+      menu = this.gui_objects.message_dragmenu;
 
     if (menu && modkey == SHIFT_KEY && this.commands['copy']) {
       var pos = rcube_event.get_mouse_pos(e);
       this.env.drag_target = target;
-      menu.css({top: (pos.y-10)+'px', left: (pos.x-10)+'px'}).show();
+      $(menu).css({top: (pos.y-10)+'px', left: (pos.x-10)+'px'}).show();
       return true;
     }
 
@@ -1227,9 +1227,9 @@
 
   this.drag_menu_action = function(action)
   {
-    var menu = $('#'+this.gui_objects.message_dragmenu);
+    var menu = this.gui_objects.message_dragmenu;
     if (menu) {
-      menu.hide();
+      $(menu).hide();
     }
     this.command(action, this.env.drag_target);
     this.env.drag_target = null;

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list