Fix setting Cancel button classes in simple_dialog()

pull/5838/head
Aleksander Machniak 8 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'); },
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),

Loading…
Cancel
Save