Add event argument to button function in simple_dialog()

pull/5838/head
Aleksander Machniak 8 years ago
parent e830fedf90
commit 3cc5eb158a

@ -7645,8 +7645,8 @@ function rcube_webmail()
buttons = [{
text: this.get_label((options || {}).button || 'save'),
'class': 'mainaction',
click: function() {
if (button_func())
click: function(e) {
if (button_func(e))
$(this).dialog('close');
}
},

Loading…
Cancel
Save