pazpar2() extension uses an empty config object if nothing is passed
authorMike Taylor <mike@indexdata.com>
Mon, 17 Mar 2014 17:30:47 +0000 (17:30 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 17 Mar 2014 17:30:55 +0000 (17:30 +0000)
in. Fixes bug MKWS-95 properly.

tools/htdocs/mkws-jquery.js

index 11fa838..0d10284 100644 (file)
@@ -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(/^#/, "");