From 79e92da7ed083f996336f933b1910c81eaeb8af8 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 22 Dec 2014 19:52:02 +0100 Subject: Fix js error when calling show_popup_dialog() without 'options' argument --- program/js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 3d714b92b..1b3836804 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -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(), -- cgit v1.2.3