Fix setting Cancel button classes in simple_dialog()

pull/5838/head
Aleksander Machniak 7 years ago
parent 3e1c542c64
commit 0e3623e87a

@ -7703,12 +7703,12 @@ function rcube_webmail()
close_func = function(e, ui, dialog) { (ref.is_framed() ? parent.$ : $)(dialog || this).dialog('close'); }, close_func = function(e, ui, dialog) { (ref.is_framed() ? parent.$ : $)(dialog || this).dialog('close'); },
buttons = [{ buttons = [{
text: ref.get_label(cancel_label), text: ref.get_label(cancel_label),
'class': cancel_label, 'class': 'cancel',
click: close_func click: close_func
}]; }];
if (!action_func) if (!action_func)
buttons[0]['class'] = 'mainaction'; buttons[0]['class'] += ' mainaction';
else else
buttons.unshift({ buttons.unshift({
text: this.get_label(save_label), text: this.get_label(save_label),

Loading…
Cancel
Save