From 4ebbfcd799553848d2a2503c1b28ab0a961a2caa Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 10 Jul 2013 15:16:11 +0000 Subject: [PATCH] use a flat config for the popup window jQuery.pazpar2({ "layout":"popup", width: 800, height: 500 } ); --- experiments/spclient/index-popup.html | 4 ++-- tools/htdocs/mkws.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/experiments/spclient/index-popup.html b/experiments/spclient/index-popup.html index 0a42fee..54a81f2 100644 --- a/experiments/spclient/index-popup.html +++ b/experiments/spclient/index-popup.html @@ -3,8 +3,8 @@ MKWS demo: popup search box - +
diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js
index c928f9c..4004ce2 100644
--- a/tools/htdocs/mkws.js
+++ b/tools/htdocs/mkws.js
@@ -919,7 +919,7 @@ jQuery.extend({
 });
 
 function init_popup(obj) {
-    var config = obj && obj.config ? obj.config : {};
+    var config = obj ? obj : {};
 
     var height = config.height || 760;
     var width = config.width || 880;
-- 
1.7.10.4