Aleksander Machniak
2014-12-22 79e92da7ed083f996336f933b1910c81eaeb8af8
Fix js error when calling show_popup_dialog() without 'options' argument
1 files modified
6 ■■■■■ changed files
program/js/app.js 6 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -6563,14 +6563,16 @@
    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(),