summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-03-03 09:06:53 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-03-03 09:06:53 +0000
commitdb0f41fb27d497bc2b3c4e6e8934fcad9b8c2a6c (patch)
tree740b7b8de4aa76575383be10e0c704448e1a0001 /roundcubemail/program
parentda05d134c3b658adc8922e2cd669d5592f8ef3ed (diff)
Fix bug introduced with r1167
git-svn-id: https://svn.roundcube.net/trunk@1170 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/js/app.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index bbd7bfc18..73c03c860 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1095,15 +1095,11 @@ function rcube_webmail()
// onmouseup handler for folder list item
this.folder_mouse_up = function(id)
{
- // Hide message command buttons until a message is selected
- this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', false);
-
if (this.drag_active)
{
this.unfocus_folder(id);
this.command('moveto', id);
}
-
};
this.click_on_list = function(e)
@@ -1387,7 +1383,7 @@ function rcube_webmail()
this.move_messages = function(mbox)
{
// exit if current or no mailbox specified or if selection is empty
- if (!mbox || !this.env.uid || mbox == this.env.mailbox || !this.message_list || !this.message_list.get_selection().length)
+ if (!mbox || mbox == this.env.mailbox || (!this.env.uid && (!this.message_list || !this.message_list.get_selection().length)))
return;
var lock = false;
@@ -1402,6 +1398,9 @@ function rcube_webmail()
else
this.show_contentframe(false);
+ // Hide message command buttons until a message is selected
+ this.enable_command('reply', 'reply-all', 'forward', 'delete', 'mark', 'print', false);
+
this._with_selected_messages('moveto', lock, add_url);
};