From 0e3623e87a7b233a3213d1e9645e2076d0233e83 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sat, 20 May 2017 18:08:54 +0200 Subject: [PATCH] Fix setting Cancel button classes in simple_dialog() --- program/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 271226a9b..c6d42a5c3 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -7703,12 +7703,12 @@ function rcube_webmail() close_func = function(e, ui, dialog) { (ref.is_framed() ? parent.$ : $)(dialog || this).dialog('close'); }, buttons = [{ text: ref.get_label(cancel_label), - 'class': cancel_label, + 'class': 'cancel', click: close_func }]; if (!action_func) - buttons[0]['class'] = 'mainaction'; + buttons[0]['class'] += ' mainaction'; else buttons.unshift({ text: this.get_label(save_label),