From: Mike Taylor Date: Mon, 17 Mar 2014 17:30:47 +0000 (+0000) Subject: pazpar2() extension uses an empty config object if nothing is passed X-Git-Tag: 1.0.0~1314^2 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=132f1c9dd205f4bda88d54255dca1843b1981655;p=mkws-moved-to-github.git pazpar2() extension uses an empty config object if nothing is passed in. Fixes bug MKWS-95 properly. --- diff --git a/tools/htdocs/mkws-jquery.js b/tools/htdocs/mkws-jquery.js index 11fa838..0d10284 100644 --- a/tools/htdocs/mkws-jquery.js +++ b/tools/htdocs/mkws-jquery.js @@ -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(/^#/, "");