refactor mkws_service_proxy_auth()
authorWolfram Schneider <wosch@indexdata.dk>
Thu, 20 Jun 2013 12:21:07 +0000 (12:21 +0000)
committerWolfram Schneider <wosch@indexdata.dk>
Thu, 20 Jun 2013 12:21:07 +0000 (12:21 +0000)
experiments/spclient/mkws.js

index 3c8d76e..af9ba21 100644 (file)
@@ -426,7 +426,7 @@ $(document).ready(function() {
     domReady();
 });
 
-$(document).ready(function() {
+function mkws_service_proxy_auth() {
     var jqxhr = jQuery.get("/service-proxy-auth")
        .fail(function() {
            alert("service proxy authentification failed, give up!");
@@ -442,4 +442,9 @@ $(document).ready(function() {
                return;
            }
        });
+}
+
+$(document).ready(function() {
+    mkws_service_proxy_auth();
 });
+