Fix error when dragging jquery dialog window in Folder Manager page

pull/264/head
Aleksander Machniak 10 years ago
parent d1382aecb2
commit a109d19a77

@ -5798,6 +5798,9 @@ function rcube_webmail()
// on the list when dragging starts (and stops), this is slow, but // on the list when dragging starts (and stops), this is slow, but
// I didn't find a method to check droptarget on over event // I didn't find a method to check droptarget on over event
accept: function(node) { accept: function(node) {
if (!$(node).is('.mailbox'))
return false;
var source_folder = ref.folder_id2name($(node).attr('id')), var source_folder = ref.folder_id2name($(node).attr('id')),
dest_folder = ref.folder_id2name(this.id), dest_folder = ref.folder_id2name(this.id),
source = ref.env.subscriptionrows[source_folder], source = ref.env.subscriptionrows[source_folder],
@ -5818,7 +5821,7 @@ function rcube_webmail()
this.folder_id2name = function(id) 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) this.subscription_select = function(id)

Loading…
Cancel
Save