X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws.js;h=0b1c9f7cf94ec37e927b445c836f21c08db240ba;hb=a08f3775820e271e3949d524b3647038d07338f7;hp=aeb3ad399a3184fe8f7074ddf9228ddbbfe83684;hpb=579d6d7627f98a5246d9957926f5546a8b82f819;p=mkws-moved-to-github.git 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,