From: Mike Taylor Date: Wed, 5 Feb 2014 00:01:10 +0000 (+0000) Subject: Use boolean true instead of numeric 1. X-Git-Tag: 1.0.0~1518^2~6 X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=commitdiff_plain;h=c5097d60efca95cf757b497eba28171dad109e41 Use boolean true instead of numeric 1. --- diff --git a/tools/htdocs/mkws.js b/tools/htdocs/mkws.js index 00350a9..dbbc2c5 100644 --- a/tools/htdocs/mkws.js +++ b/tools/htdocs/mkws.js @@ -1052,16 +1052,16 @@ function team($, teamName) { var lang_options = mkws_config.lang_options || []; var toBeIncluded = {}; for (var i = 0; i < lang_options.length; i++) { - toBeIncluded[lang_options[i]] = 1; + toBeIncluded[lang_options[i]] = true; } for (var k in mkws.locale_lang) { - if (toBeIncluded[k] == 1 || lang_options.length == 0) + if (toBeIncluded[k] || lang_options.length == 0) list.push(k); } // add english link - if (lang_options.length == 0 || toBeIncluded[lang_default] == 1) + if (lang_options.length == 0 || toBeIncluded[lang_default]) list.push(lang_default); debug("Language menu for: " + list.join(", "));