summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-01-13 06:58:25 -0500
committerAleksander Machniak <alec@alec.pl>2015-01-13 06:58:25 -0500
commita109d19a77f017bad2e8b5bc830dc244b0e29ffb (patch)
treed9c4ef904fe13f9e5ac5472d2a3de0b79169f55e /program
parentd1382aecb2b3439a34869221ddab8018c511f7e6 (diff)
Fix error when dragging jquery dialog window in Folder Manager page
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 9b889f16a..8e3f9cd5a 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -5798,6 +5798,9 @@ function rcube_webmail()
// on the list when dragging starts (and stops), this is slow, but
// I didn't find a method to check droptarget on over event
accept: function(node) {
+ if (!$(node).is('.mailbox'))
+ return false;
+
var source_folder = ref.folder_id2name($(node).attr('id')),
dest_folder = ref.folder_id2name(this.id),
source = ref.env.subscriptionrows[source_folder],
@@ -5818,7 +5821,7 @@ function rcube_webmail()
this.folder_id2name = function(id)
{
- return ref.html_identifier_decode(id.replace(/^rcmli/, ''));
+ return id ? ref.html_identifier_decode(id.replace(/^rcmli/, '')) : null;
};
this.subscription_select = function(id)