From: Wolfram Schneider Date: Tue, 18 Mar 2014 09:49:55 +0000 (+0000) Subject: improve javascript object check from last commit X-Git-Tag: 1.0.0~1315 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=6bce7bdad808e1b2e5b64da14fee4f5f10d63c08 improve javascript object check from last commit --- diff --git a/tools/htdocs/mkws-jquery.js b/tools/htdocs/mkws-jquery.js index 11fa838..8e7102a 100644 --- a/tools/htdocs/mkws-jquery.js +++ b/tools/htdocs/mkws-jquery.js @@ -57,6 +57,9 @@ function _mkws_jquery_plugin ($) { // service-proxy or pazpar2 pazpar2: function(config) { + if (config == null || typeof config != 'object') { + config = {}; + } var id_popup = config.id_popup || "#mkwsPopup"; id_popup = id_popup.replace(/^#/, "");