diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-12-22 19:52:02 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-12-22 19:52:02 +0100 |
commit | 79e92da7ed083f996336f933b1910c81eaeb8af8 (patch) | |
tree | db9c86dc200d8844fca34104f2ef6415d969036e /program | |
parent | 11eb072f80ae666f31cdc54c40aefeb7d5bdb014 (diff) |
Fix js error when calling show_popup_dialog() without 'options' argument
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 6 |
1 files 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(), |