[Svn] r2312 - branches/devel-api/program/js

trac at roundcube.net trac at roundcube.net
Fri Feb 27 10:54:41 CET 2009


Author: thomasb
Date: 2009-02-27 03:54:41 -0600 (Fri, 27 Feb 2009)
New Revision: 2312

Modified:
   branches/devel-api/program/js/app.js
Log:
Fix message dragging + don't write quota if container doesn't exits

Modified: branches/devel-api/program/js/app.js
===================================================================
--- branches/devel-api/program/js/app.js	2009-02-27 08:54:37 UTC (rev 2311)
+++ branches/devel-api/program/js/app.js	2009-02-27 09:54:41 UTC (rev 2312)
@@ -167,15 +167,13 @@
           this.message_list.addEventListener('dragstart', function(o){ p.drag_start(o); });
           this.message_list.addEventListener('dragmove', function(o, e){ p.drag_move(e); });
           this.message_list.addEventListener('dragend', function(o){ p.drag_active = false; });
+          document.onmouseup = function(e){ return p.doc_mouse_up(e); };
 
           this.message_list.init();
           this.enable_command('toggle_status', 'toggle_flag', true);
           
           if (this.gui_objects.mailcontframe)
-            {
             this.gui_objects.mailcontframe.onmousedown = function(e){ return p.click_on_list(e); };
-            document.onmouseup = function(e){ return p.doc_mouse_up(e); };
-            }
           else
             this.message_list.focus();
           }
@@ -1285,7 +1283,8 @@
         }
         else {
           $(this.get_folder_li(k)).removeClass('droptarget');
-          this.env.last_folder_target = null;
+          if (k == this.env.last_folder_target)
+            this.env.last_folder_target = null;
         }
       }
     }
@@ -3592,7 +3591,7 @@
   // replace content of quota display
   this.set_quota = function(content)
     {
-    if (content)
+    if (content && this.gui_objects.quotadisplay)
       $(this.gui_objects.quotadisplay).html(content);
     };
 

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



More information about the Svn mailing list