plugins/kolab_files

Aleksander Machniak machniak at kolabsys.com
Fri Jun 20 09:40:42 CEST 2014


 plugins/kolab_files/kolab_files.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3acc91b8bcf387e5c8f369b1ccfc13ed14d5e5a1
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Fri Jun 20 09:39:29 2014 +0200

    Fix non-working folder creation button in "save to cloud"  dialog

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();




More information about the commits mailing list