From: Mike Taylor Date: Wed, 5 Feb 2014 00:00:19 +0000 (+0000) Subject: Rename hash more informatively. X-Git-Tag: 1.0.0~1518^2~7 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=2275826b255416ed4a7b70b98db1f568c0957322 Rename hash more informatively. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index b113625..00350a9 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1050,18 +1050,18 @@ function team($, teamName) { /* display a list of configured languages, or all */ var lang_options = mkws_config.lang_options || []; - var hash = {}; + var toBeIncluded = {}; for (var i = 0; i < lang_options.length; i++) { - hash[lang_options[i]] = 1; + toBeIncluded[lang_options[i]] = 1; } for (var k in mkws.locale_lang) { - if (hash[k] == 1 || lang_options.length == 0) + if (toBeIncluded[k] == 1 || lang_options.length == 0) list.push(k); } // add english link - if (lang_options.length == 0 || hash[lang_default] == 1) + if (lang_options.length == 0 || toBeIncluded[lang_default] == 1) list.push(lang_default); debug("Language menu for: " + list.join(", "));