From: Wolfram Schneider Date: Thu, 20 Jun 2013 12:41:13 +0000 (+0000) Subject: new config mkws_switch: show/hide Records|Targets menu X-Git-Tag: 0.9.1~574^2~27 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=8fcd6d851b7b1642d16eb00bb9d04c1d7c09cd1e;p=mkws-moved-to-github.git new config mkws_switch: show/hide Records|Targets menu --- 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('\