From e006a92c8bb9c2c6c49fd067ac1fb01327aa56e1 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 16 Apr 2014 15:26:10 +0000 Subject: [PATCH] Change ALL id="mkwsStat" to class="mkwsStat", as use of IDs is deprecated --- src/mkws-jquery.js | 58 ++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/mkws-jquery.js b/src/mkws-jquery.js index 0756d54..2f79db4 100644 --- a/src/mkws-jquery.js +++ b/src/mkws-jquery.js @@ -20,7 +20,7 @@ function _mkws_jquery_plugin($) { var height = config.height || 760; var width = config.width || 880; var id_button = config.id_button || "input.mkwsButton"; - var id_popup = config.id_popup || "#mkwsPopup"; + var id_popup = config.id_popup || ".mkwsPopup"; debug("popup height: " + height + ", width: " + width); @@ -57,30 +57,30 @@ function _mkws_jquery_plugin($) { // service-proxy or pazpar2 pazpar2: function(config) { - if (config == null || typeof config != 'object') { + if (config == null || typeof config != 'object') { config = {}; } - var id_popup = config.id_popup || "#mkwsPopup"; - id_popup = id_popup.replace(/^#/, ""); + var id_popup = config.id_popup || ".mkwsPopup"; + id_popup = id_popup.replace(/^[#\.]/, ""); // simple layout var div = '\ -
\ -
\ -
\ -
\ -
\ -
'; +
\ +
\ +
\ +
\ +
\ +
'; // new table layout var table = '\ \ @@ -88,44 +88,44 @@ function _mkws_jquery_plugin($) { \ \ \ \ \ \ \ \ \ \ \ \ \
\ -
\ -
\ -
\ +
\ +
\ +
\
\
\ -
\ -
\ -
\ -
\ -
\ +
\ +
\ +
\ +
\ +
\
\
\
\ -
\ +
\
\
\ -
\ +
\
'; var popup = '\ -
\ -
\ -
\ -
\ -
\ -
\ -
\ +
\ +
\ +
\ +
\ +
\ +
\ +
\
' if (config && config.layout == 'div') { -- 1.7.10.4