From: Wolfram Schneider Date: Wed, 16 Apr 2014 15:26:10 +0000 (+0000) Subject: Change ALL id="mkwsStat" to class="mkwsStat", as use of IDs is deprecated X-Git-Tag: 1.0.0~917 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=e006a92c8bb9c2c6c49fd067ac1fb01327aa56e1;p=mkws-moved-to-github.git Change ALL id="mkwsStat" to class="mkwsStat", as use of IDs is deprecated --- 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') {