projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7464dc
)
new config mkws_switch: show/hide Records|Targets menu
author
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 20 Jun 2013 12:41:13 +0000
(12:41 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 20 Jun 2013 12:41:13 +0000
(12:41 +0000)
experiments/spclient/mkws.js
patch
|
blob
|
history
diff --git
a/experiments/spclient/mkws.js
b/experiments/spclient/mkws.js
index
5dee695
..
5ba7692
100644
(file)
--- 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('\