From 132f1c9dd205f4bda88d54255dca1843b1981655 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 17 Mar 2014 17:30:47 +0000 Subject: [PATCH] pazpar2() extension uses an empty config object if nothing is passed in. Fixes bug MKWS-95 properly. --- tools/htdocs/mkws-jquery.js | 1 + 1 file changed, 1 insertion(+) 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(/^#/, ""); -- 1.7.10.4