diff --git a/program/js/app.js b/program/js/app.js index 19db8b6f4..7657a5223 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -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'); } },