From b4b081713ee88c9a7b2515d18c36bedf966641ce Mon Sep 17 00:00:00 2001
From: svncommit <devs@roundcube.net>
Date: Mon, 03 Jul 2006 16:14:26 -0400
Subject: [PATCH] Workaround for drag-drop using whitespace in FF, Junk emptying, misc fixes

---
 program/js/app.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 174920c..c60f62f 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -153,7 +153,7 @@
         if (this.env.messagecount)
           this.enable_command('select-all', 'select-none', 'sort', 'expunge', true);
 
-        if (this.env.messagecount && this.env.mailbox==this.env.trash_mailbox)
+        if (this.env.messagecount && (this.env.mailbox==this.env.trash_mailbox || this.env.mailbox==this.env.junk_mailbox))
           this.enable_command('purge', true);
 
         this.set_page_buttons();
@@ -893,7 +893,7 @@
             
           }
         else if (props)
-           url += '&_to='+props;
+           url += '&_to='+encodeURIComponent(props);
 
         // don't know if this is necessary...
         url = url.replace(/&_framed=1/, "");
@@ -1352,7 +1352,7 @@
       if (this.env.mailbox==this.env.drafts_mailbox)
 	{
 	this.enable_command('show', selected);
-	this.enable_command('delete', this.selection.length>0 ? true : false);
+	this.enable_command('delete', 'moveto', this.selection.length>0 ? true : false);
         }
       else
         {

--
Gitblit v1.9.1