mediawiki.page.watch.ajax: Disable watch link while waiting for API response
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 17 May 2014 13:55:08 +0000 (15:55 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Mon, 19 May 2014 14:43:30 +0000 (16:43 +0200)
commit10414696f123b729d49c125e61193018cee2c704
tree2a8ac97b9267eeb36ceb58cbab008d7ad57a13db
parentb3456db703ef66f3df5608fc8f2301b9273d2a9e
mediawiki.page.watch.ajax: Disable watch link while waiting for API response

Previously clicking the watch link several times in a row would fire
several requests to the API, and the final result would depend on the
order in which they arrived. Let's not allow that.

This also removes the special-case for the 'loading' class, it is now
always added or removed.

Change-Id: Ib91ec8505d04945dc77e48ab70b5c94e3da47d9c
resources/src/mediawiki.page/mediawiki.page.watch.ajax.js
skins/vector/components/watchstar.less