From 79e92da7ed083f996336f933b1910c81eaeb8af8 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 22 Dec 2014 13:52:02 -0500
Subject: [PATCH] Fix js error when calling show_popup_dialog() without 'options' argument
---
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 3d714b9..1b38368 100644
--- a/program/js/app.js
+++ b/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(),
--
Gitblit v1.9.1