Rename "sort" parameter to "sortOrder" in functions newSearch and triggerSearch.
[mkws-moved-to-github.git] / tools / htdocs / mkws-jquery.js
index 8123b7d..0d10284 100644 (file)
@@ -19,7 +19,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_button = config.id_button || "input.mkwsButton";
        var id_popup = config.id_popup || "#mkwsPopup";
 
        debug("popup height: " + height + ", width: " + width);
@@ -57,6 +57,7 @@ function _mkws_jquery_plugin ($) {
 
        // service-proxy or pazpar2
        pazpar2: function(config) {
+           if (!config) config = {};
            var id_popup = config.id_popup || "#mkwsPopup";
            id_popup = id_popup.replace(/^#/, "");