Clear up class/id confusion for mkwsPopup
[mkws-moved-to-github.git] / tools / htdocs / mkws-jquery.js
index 225b562..9f296ee 100644 (file)
@@ -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");
            });
     };