summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-03-04 12:58:49 (GMT)
committerAleksander Machniak <alec@alec.pl>2015-03-04 12:58:49 (GMT)
commit589f2e9ab888bc76000cc6c903f25077ce870b33 (patch)
treefadaa5cbfa31180b09179242dbb525741d495680
parentb6c5d0426b6fde14cd440249f9364ed854c20185 (diff)
downloadroundcubemail-plugins-kolab-589f2e9ab888bc76000cc6c903f25077ce870b33.tar.gz
Fix javascript errors in Add Storage popup (#4775)
-rw-r--r--plugins/kolab_files/kolab_files.js12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js
index bf63721..29add3a 100644
--- a/plugins/kolab_files/kolab_files.js
+++ b/plugins/kolab_files/kolab_files.js
@@ -407,7 +407,7 @@ function kolab_files_folder_mount_dialog()
};
// close folderoption menu
- rcmail.hide_menu('folderoptions');
+ $('#folderoptions').hide();
// initialize drivers list
if (!rcmail.drivers_list_initialized) {
@@ -464,7 +464,7 @@ function kolab_files_file_edit_dialog(file)
});
};
-function kolab_dialog_show(dialog, params)
+function kolab_dialog_show(dialog, params, onopen)
{
params = $.extend({
modal: true,
@@ -477,6 +477,8 @@ function kolab_dialog_show(dialog, params)
}, params || {});
dialog.dialog(params).show();
+
+ if (onopen) onopen(dialog);
};
// Handle form submit with Enter key, click first dialog button instead
@@ -486,6 +488,12 @@ function kolab_dialog_submit_handler()
return false;
};
+// Hides dialog
+function kolab_dialog_close(dialog)
+{
+ (rcmail.is_framed() ? window.parent : window).$(dialog).dialog('close');
+};
+
// smart upload button
function kolab_files_upload_input(button)
{