mediawiki.special.watchlist: Optimize JavaScript code
authorFomafix <fomafix@googlemail.com>
Thu, 15 Dec 2016 14:01:49 +0000 (15:01 +0100)
committerFomafix <fomafix@googlemail.com>
Thu, 15 Dec 2016 19:47:56 +0000 (20:47 +0100)
commitf4d70ceedcbbe66bb5ee7177c86f6faf883f8b12
tree8ef48bdef2904c95d352b46ba1b586576690f942
parent4721eb350a8e786cf44ec0d4d4fdf22417df7ba9
mediawiki.special.watchlist: Optimize JavaScript code

* Create progress bar not before submit.
* Reenable the disabled reset button after response.
  Currently a reload of the watch list after reset may lead to a disabled
  reset button.
* Reduce indenting by make an early return.
* Add some line breaks for better readability.
* Add some comments.

Follows-up to 9ea1142fad935999ac64e2920321520c1bbbfb61

Change-Id: Ibfafa140172bae55be01383ef7a9899104d46938
resources/src/mediawiki.special/mediawiki.special.watchlist.js