From b62a2419dbff0e0bbc93f60c555f441e5970277f Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 20 Jun 2013 12:25:57 +0000 Subject: [PATCH] refactor mkws_html_all() --- experiments/spclient/mkws.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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(); }); -- 1.7.10.4