From: Wolfram Schneider Date: Thu, 20 Jun 2013 12:25:57 +0000 (+0000) Subject: refactor mkws_html_all() X-Git-Tag: 0.9.1~574^2~30 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b62a2419dbff0e0bbc93f60c555f441e5970277f;p=mkws-moved-to-github.git refactor mkws_html_all() --- diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 179e972..fa551a7 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -371,8 +371,7 @@ function renderDetails(data, marker) return details; } - -$(document).ready(function() { +function mkws_html_all() { $("#mkwsSwitch").html($("", { href: '#', onclick: "switchView(\'records\')", @@ -424,7 +423,8 @@ $(document).ready(function() { $("#mkwsTargets").css("display", "none"); domReady(); -}); +} + function mkws_service_proxy_auth() { var jqxhr = jQuery.get("/service-proxy-auth") @@ -444,7 +444,6 @@ function mkws_service_proxy_auth() { }); } -$(document).ready(function() { - mkws_service_proxy_auth(); -}); +$(document).ready(function() { mkws_html_all(); }); +$(document).ready(function() { mkws_service_proxy_auth(); });