Remember checkbox state on Special:Block if checkbox disabled
authorThalia <thalia.e.chan@googlemail.com>
Mon, 15 Jul 2019 18:39:36 +0000 (19:39 +0100)
committerThalia <thalia.e.chan@googlemail.com>
Wed, 17 Jul 2019 11:52:54 +0000 (12:52 +0100)
commit80674d1cb953d3798a382a3f25189d99097fc5a3
tree5eb004c5958e7f8f35ee88686ce623a6cbe7ba90
parent06de7957785f3397ca6c88959aaf4735b4287590
Remember checkbox state on Special:Block if checkbox disabled

Many of the blocking options on Special:Block are only valid for
certain inputs. These options are represented with checkboxes. If
an option is not valid with the current form inputs, its checkbox
is disabled (and not submitted) and it is set to false by default.
To make this clear to the user, we uncheck the checkbox when it
is disabled.

This stores the value of the checkbox before it was disabled and
restores it if the checkbox is enabled again.

Bug: T221117
Change-Id: I3e52d7c3eb70f2798de3fb5ac3824d56e73306a6
resources/src/mediawiki.special.block.js