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:
867fd75
)
Move show_lang logic inside mkwsHtmlLang.
author
Mike Taylor
<mike@indexdata.com>
Tue, 29 Apr 2014 12:32:18 +0000
(13:32 +0100)
committer
Mike Taylor
<mike@indexdata.com>
Tue, 29 Apr 2014 12:32:18 +0000
(13:32 +0100)
src/mkws-team.js
patch
|
blob
|
history
diff --git
a/src/mkws-team.js
b/src/mkws-team.js
index
63d50fa
..
607b0c8
100644
(file)
--- a/
src/mkws-team.js
+++ b/
src/mkws-team.js
@@
-354,8
+354,7
@@
function team($, teamName) {
*/
function mkwsHtmlAll() {
mkwsSetLang();
- if (m_config.show_lang)
- mkwsHtmlLang();
+ mkwsHtmlLang();
var container = findnode(".mkwsMOTDContainer");
if (container.length) {
@@
-400,6
+399,8
@@
function team($, teamName) {
// dynamic URL or static page? /path/foo?query=test
/* create locale language menu */
function mkwsHtmlLang() {
+ if (!m_config.show_lang) return;
+
var lang_default = "en";
var lang = m_config.lang || lang_default;
var list = [];