From: Mike Taylor Date: Wed, 7 May 2014 12:30:50 +0000 (+0100) Subject: Tabs to spaces. X-Git-Tag: 1.0.0~715 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=be7a6e4458bf11cfc17e6afbabb0ed9a1c7c1a50;p=mkws-moved-to-github.git Tabs to spaces. --- diff --git a/src/mkws-jquery.js b/src/mkws-jquery.js index 41810ea..90e43e4 100644 --- a/src/mkws-jquery.js +++ b/src/mkws-jquery.js @@ -39,9 +39,9 @@ function _mkws_jquery_plugin($) { modal: true, resizable: true, buttons: { - Cancel: function() { - $(this).dialog("close"); - } + Cancel: function() { + $(this).dialog("close"); + } }, close: function() { } }); @@ -49,7 +49,7 @@ function _mkws_jquery_plugin($) { $(id_button) .button() .click(function() { - $(id_popup).dialog("open"); + $(id_popup).dialog("open"); }); }; @@ -58,7 +58,7 @@ function _mkws_jquery_plugin($) { // service-proxy or pazpar2 pazpar2: function(config) { if (config == null || typeof config != 'object') { - config = {}; + config = {}; } var id_popup = config.id_popup || ".mkwsPopup"; id_popup = id_popup.replace(/^[#\.]/, ""); @@ -96,18 +96,18 @@ function _mkws_jquery_plugin($) { \ \
\ -
\ -
\ -
\ -
\ -
\ +
\ +
\ +
\ +
\ +
\
\ \ \ \ \
\ -
\ +
\
\ \ \ @@ -129,15 +129,15 @@ function _mkws_jquery_plugin($) { ' if (config && config.layout == 'div') { - debug("jquery plugin layout: div"); - document.write(div); + debug("jquery plugin layout: div"); + document.write(div); } else if (config && config.layout == 'popup') { - debug("jquery plugin layout: popup with id: " + id_popup); - document.write(popup); - $(document).ready(function() { init_popup(config); }); + debug("jquery plugin layout: popup with id: " + id_popup); + document.write(popup); + $(document).ready(function() { init_popup(config); }); } else { - debug("jquery plugin layout: table"); - document.write(table); + debug("jquery plugin layout: table"); + document.write(table); } } });