From 8fcd6d851b7b1642d16eb00bb9d04c1d7c09cd1e Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Thu, 20 Jun 2013 12:41:13 +0000 Subject: [PATCH] new config mkws_switch: show/hide Records|Targets menu --- experiments/spclient/mkws.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/experiments/spclient/mkws.js b/experiments/spclient/mkws.js index 5dee695..5ba7692 100644 --- a/experiments/spclient/mkws.js +++ b/experiments/spclient/mkws.js @@ -383,6 +383,7 @@ function mkws_html_all(data) { sort_default: "relevance", perpage_default: 20, query_width: 50, + mkws_switch: true, /* show/hide Records|Targets menu */ dummy: "dummy" }; @@ -399,6 +400,10 @@ function mkws_html_all(data) { text: "Targets", })); + if (!config.mkws_switch) { + $("#mkwsSwitch").css("display", "none"); + } + // For some reason, doing this programmatically results in // document.search.query being undefined, hence the raw HTML. $("#mkwsSearch").html('\ -- 1.7.10.4