X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=tools%2Fhtdocs%2Fmkws-jquery.js;h=9f296eeb7e0adf5eb211b0de11c2eea56463a486;hb=d6bfe021bc445c401f5125d3d3a4793bc7ad0ea3;hp=225b562ea52c98549b891e57e131148595554694;hpb=a921ed41eedade3441bf9f4d34374485edb6828a;p=mkws-moved-to-github.git diff --git a/tools/htdocs/mkws-jquery.js b/tools/htdocs/mkws-jquery.js index 225b562..9f296ee 100644 --- a/tools/htdocs/mkws-jquery.js +++ b/tools/htdocs/mkws-jquery.js @@ -20,7 +20,7 @@ function _mkws_jquery_plugin ($) { var height = config.height || 760; var width = config.width || 880; var id_button = config.id_button || "input.mkwsButton"; - var id_popup = config.id_popup || ".mkwsPopup"; + var id_popup = config.id_popup || "#mkwsPopup"; debug("popup height: " + height + ", width: " + width); @@ -31,6 +31,7 @@ function _mkws_jquery_plugin ($) { return; } + debug("Calling dialog()"); $(id_popup).dialog({ closeOnEscape: true, autoOpen: false, @@ -45,10 +46,12 @@ function _mkws_jquery_plugin ($) { }, close: function() { } }); + debug("Called dialog()"); $(id_button) .button() .click(function() { + debug("Opening dialog()"); $(id_popup).dialog("open"); }); };