mediawiki.page.gallery: Improve documentation
authorTimo Tijhof <krinklemail@gmail.com>
Mon, 21 May 2018 16:52:13 +0000 (17:52 +0100)
committerVolkerE <volker.e@wikimedia.org>
Tue, 22 May 2018 16:09:28 +0000 (16:09 +0000)
commitbcfb9b86af0fefb59fa989e1aa16dee88f70211f
treef78cc85a591b9c34411aca041140b91431800dad
parent4f8cf894f9dec10a6542ab73c65ceb2ab5bae353
mediawiki.page.gallery: Improve documentation

This file does a lot of things, but the header starts with
explaining a random/obscure thing it does with 4 lines of code
at the end of this large file.

Move that explanation near that actual code. Presumably it was
placed at the top because it used to be the only thing the
file was responsible for.

Change-Id: I75299a25dd8f5f4d4ab4cdc8fc90d74e6a74422c
resources/src/mediawiki.page.gallery.js