mediawiki.page.watch: Avoid dynamic message keys
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 14 Dec 2016 13:17:58 +0000 (14:17 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 14 Dec 2016 13:20:25 +0000 (13:20 +0000)
commit31a1c4649ba06a9a4416a5e49f80f5214faa16cf
treedc44c2a4784f9d08d0328f9ad7fcf9b2d87ecd74
parent00ba9f93de93437a227eb853c3cd34c5adfb4629
mediawiki.page.watch: Avoid dynamic message keys

Restructure the code to avoid constructing message names by adding
strings together. Makes it easier to find the usages.

Also, simplify a check for odd/even namespace numbers.

Change-Id: I0b6794cc07ed2a600499632d240b71898715c5b0
resources/src/mediawiki/page/watch.js