summaryrefslogtreecommitdiff
path: root/plugins/kolab_files
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-06-20 07:39:29 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-06-20 07:39:29 (GMT)
commit3acc91b8bcf387e5c8f369b1ccfc13ed14d5e5a1 (patch)
tree72d9a6554b7305c5d6789712440518a8510b61eb /plugins/kolab_files
parent6e82e347a07bf792c1b829cc6f787b948f5e8e23 (diff)
downloadroundcubemail-plugins-kolab-3acc91b8bcf387e5c8f369b1ccfc13ed14d5e5a1.tar.gz
Fix non-working folder creation button in "save to cloud" dialog
Diffstat (limited to 'plugins/kolab_files')
-rw-r--r--plugins/kolab_files/kolab_files.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js
index 0f922a7..7724ed8 100644
--- a/plugins/kolab_files/kolab_files.js
+++ b/plugins/kolab_files/kolab_files.js
@@ -68,6 +68,7 @@ window.rcmail && rcmail.addEventListener('init', function() {
}
rcmail.addEventListener('menu-open', kolab_files_attach_menu_open);
+ rcmail.enable_command('folder-create', true);
}
kolab_files_init();
@@ -422,7 +423,7 @@ function kolab_dialog_show(content, params, onopen)
if (stack.length) {
elem = stack[stack.length-1].find('input[type!="hidden"]:not(:hidden):first');
if (!elem.length)
- elem = stack[stack.length-1].parent().find('button:first');
+ elem = stack[stack.length-1].parent().find('a[role="button"], .ui-dialog-buttonpane button').first();
}
(elem && elem.length ? elem : window).focus();