X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=experiments%2Fspclient%2Fmkws.js;h=15dcd17a6a986a2a54fe4cd8846df852d9ba6294;hb=c0c7390fd6671ff00b4c0ca77def47e0ca52ef52;hp=eacaec5fb5ad73de061a8549a1420b96001eccfb;hpb=0e4c5142f9c9427603c65e1d40aaff16648df2a1;p=mkws-moved-to-github.git diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index eacaec5..15dcd17 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -373,10 +373,6 @@ function renderDetails(data, marker) $(document).ready(function() { - domReady(); - var jqxhr = jQuery.get("/service-proxy-auth") - .fail(function() { alert("service proxy authentifiction failed"); }); - $("#mkwsSwitch").html($("", { href: '#', onclick: "switchView(\'recordview\')", text: "Record Browser", @@ -386,4 +382,18 @@ $(document).ready(function() { onclick: "switchView(\'targetview\')", text: "Target Info", })); + + // For some reason, doing this programmatically results in + // document.search.query being undefined, hence the raw HTML. + $("#mkwsSearch").html('\ +
\ + \ + \ +
'); + + domReady(); + + var jqxhr = jQuery.get("/service-proxy-auth") + .fail(function() { alert("service proxy authentifiction failed"); }); + });