From a08f3775820e271e3949d524b3647038d07338f7 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 22 Aug 2013 11:13:05 +0000 Subject: [PATCH] check if jquery-ui.js is missing --- tools/htdocs/mkws.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index aeb3ad3..0b1c9f7 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -930,10 +930,13 @@ function init_popup(obj) { debug("popup height: " + height + ", width: " + width); - /* - * make sure that jquery-ui was loaded afte jQuery core lib - * http://code.jquery.com/ui/1.10.3/jquery-ui.min.js" - */ + // make sure that jquery-ui was loaded afte jQuery core lib, e.g.: + // + if (!$.ui) { + debug("Error: jquery-ui.js is missing, did you included it after jquery core in the HTML file?"); + return; + } + $(id_popup).dialog({ closeOnEscape: true, autoOpen: false, -- 1.7.10.4