mediawiki.Upload.BookletLayout: Allow for asynchronous initialization
authorBartosz Dziewoński <matma.rex@gmail.com>
Wed, 28 Oct 2015 21:28:51 +0000 (22:28 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 28 Oct 2015 21:59:14 +0000 (22:59 +0100)
commitd2a3225f483e275eefcddc193d55181914eb0542
treefe5db78abfe2368685a819c39f0c0898d9ea43d5
parent56a9ae8d28256b58f1a6a76d55ede99c473b89aa
mediawiki.Upload.BookletLayout: Allow for asynchronous initialization

It happens to be convenient, since it turned out that we need to fire
a few API requests to correctly render some bits of the UI.

Follow-up to 86dedeea7f7cae5452acf5162672f34c32b593fd. This makes the
code less hacky and more reliable.

Change-Id: I65a92e3915a6844056fb7b3a2758a168eb12e6b8
resources/src/mediawiki/mediawiki.ForeignStructuredUpload.BookletLayout.js
resources/src/mediawiki/mediawiki.Upload.BookletLayout.js
resources/src/mediawiki/mediawiki.Upload.Dialog.js