summaryrefslogtreecommitdiff
path: root/plugins/kolab_files
diff options
context:
space:
mode:
authorAleksander Machniak <machniak@kolabsys.com>2014-12-10 11:56:56 (GMT)
committerAleksander Machniak <machniak@kolabsys.com>2014-12-10 11:56:56 (GMT)
commitc9622696a1048e645c273fb73c8ee27a609157c1 (patch)
treef004dddedb0d16f8a80d1ebf1d52e8e5771512e8 /plugins/kolab_files
parentdf65bb8818a0ccf7ca8d78bc570d095cc09d8fe8 (diff)
downloadroundcubemail-plugins-kolab-c9622696a1048e645c273fb73c8ee27a609157c1.tar.gz
Assign mainaction/delete classes to dialog buttonsroundcubemail-plugins-kolab-3.2.1
Diffstat (limited to 'plugins/kolab_files')
-rw-r--r--plugins/kolab_files/kolab_files.js13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/kolab_files/kolab_files.js b/plugins/kolab_files/kolab_files.js
index 0a1073e..b168b73 100644
--- a/plugins/kolab_files/kolab_files.js
+++ b/plugins/kolab_files/kolab_files.js
@@ -230,6 +230,7 @@ function kolab_directory_selector_dialog(id)
kolab_dialog_show(dialog, {
title: rcmail.gettext('kolab_files.' + label),
buttons: buttons,
+ button_classes: ['mainaction'],
minWidth: 250,
minHeight: 300,
height: 350,
@@ -283,6 +284,7 @@ function kolab_files_selector_dialog()
kolab_dialog_show(dialog, {
title: rcmail.gettext('kolab_files.selectfiles'),
buttons: buttons,
+ button_classes: ['mainaction'],
minWidth: 500,
minHeight: 300,
width: 700,
@@ -340,7 +342,8 @@ function kolab_files_folder_create_dialog()
// show dialog window
kolab_dialog_show(dialog, {
title: rcmail.gettext('kolab_files.foldercreate'),
- buttons: buttons
+ buttons: buttons,
+ button_classes: ['mainaction']
});
// Fix submitting form with Enter
@@ -395,7 +398,8 @@ function kolab_files_folder_edit_dialog()
// show dialog window
kolab_dialog_show(dialog, {
title: rcmail.gettext('kolab_files.folderedit'),
- buttons: buttons
+ buttons: buttons,
+ button_classes: ['mainaction']
});
// Fix submitting form with Enter
@@ -467,6 +471,8 @@ function kolab_files_folder_mount_dialog()
});
}
+ args.button_classes = ['mainaction'];
+
// show dialog window
kolab_dialog_show(dialog, args, function() {
$('td.source:first', dialog).click();
@@ -504,7 +510,8 @@ function kolab_files_file_edit_dialog(file)
// show dialog window
kolab_dialog_show(dialog, {
title: rcmail.gettext('kolab_files.fileedit'),
- buttons: buttons
+ buttons: buttons,
+ button_classes: ['mainaction']
});
};