From 4ede67dc434c9768909b7f7e31b7937eca663d59 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 22 Aug 2013 17:08:24 +0100 Subject: [PATCH] Remove switch_menu item from config object. After all, if the mkwsSwitch div is not provided, it's not displayed. It seems perverse to have an application include that div, then add a config element saying to ignore it! And equally perverse to add the div to an existing page that lacks it, and not see it appear. --- tools/htdocs/mkws.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 5053027..025fa8a 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -524,7 +524,6 @@ function mkws_html_all(config) { sort_default: "relevance", perpage_default: 20, query_width: 50, - switch_menu: false, /* show/hide Records|Targets menu */ lang_menu: true, /* show/hide language menu */ sort_menu: true, /* show/hide sort menu */ perpage_menu: true, /* show/hide perpage menu */ @@ -672,11 +671,6 @@ function mkws_html_switch(config) { No information available yet.\ '); $("#mkwsTargets").css("display", "none"); - - if (!config.switch_menu) { - debug("disable switch menu"); - $("#mkwsSwitch").css("display", "none"); - } } function mkws_html_sort(config) { -- 1.7.10.4