sort_default: "relevance",
perpage_default: 20,
query_width: 50,
- mkws_switch: true, /* show/hide Records|Targets menu */
+ switch: true, /* show/hide Records|Targets menu */
dummy: "dummy"
};
</div>');
$("#mkwsTargets").css("display", "none");
+ mkws_service_proxy_auth(config.service_proxy_auth);
domReady();
}
text: "Targets"
}));
- if (!config.mkws_switch) {
+ if (!config.switch) {
$("#mkwsSwitch").css("display", "none");
}
}
* The username/password is configured in the apache config file
* for the site.
*/
-function mkws_service_proxy_auth() {
- var jqxhr = jQuery.get("/service-proxy-auth")
+function mkws_service_proxy_auth(auth_url) {
+ if (!auth_url)
+ auth_url = "/service-proxy-auth";
+
+ var jqxhr = jQuery.get(auth_url)
.fail(function() {
alert("service proxy authentication failed, give up!");
})
});
}
+/* magic */
$(document).ready(function() { mkws_html_all(mkws_config) });
-$(document).ready(function() { mkws_service_proxy_auth(); });