From: Mike Taylor Date: Thu, 22 Aug 2013 16:08:24 +0000 (+0100) Subject: Remove switch_menu item from config object. After all, if the X-Git-Tag: 0.9.1~225 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=4ede67dc434c9768909b7f7e31b7937eca663d59;p=mkws-moved-to-github.git 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. --- 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) {