Fix js error when calling show_popup_dialog() without 'options' argument

pull/244/head
Aleksander Machniak 10 years ago
parent 11eb072f80
commit 79e92da7ed

@ -6563,14 +6563,16 @@ function rcube_webmail()
else
popup.html(content);
popup.dialog($.extend({
options = $.extend({
title: title,
buttons: buttons,
modal: true,
resizable: true,
width: 500,
close: function(event, ui) { $(this).remove(); }
}, options || {}));
}, options || {});
popup.dialog(options);
// resize and center popup
var win = $(window), w = win.width(), h = win.height(),

Loading…
Cancel
Save