X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=tools%2Fhtdocs%2Fmkws-jquery.js;h=8e7102a2ef2bca791375d1e241a201154f4f92f6;hp=0d102842315207451f17292f71b2163bf9addc30;hb=2681321da7a6c02655b92fc46832c5d80f90e6c1;hpb=132f1c9dd205f4bda88d54255dca1843b1981655 diff --git a/tools/htdocs/mkws-jquery.js b/tools/htdocs/mkws-jquery.js index 0d10284..8e7102a 100644 --- a/tools/htdocs/mkws-jquery.js +++ b/tools/htdocs/mkws-jquery.js @@ -57,7 +57,9 @@ function _mkws_jquery_plugin ($) { // service-proxy or pazpar2 pazpar2: function(config) { - if (!config) config = {}; + if (config == null || typeof config != 'object') { + config = {}; + } var id_popup = config.id_popup || "#mkwsPopup"; id_popup = id_popup.replace(/^#/, "");