diff options
author | Tim Starling <tstarling@wikimedia.org> | 2023-07-14 11:35:08 +1000 |
---|---|---|
committer | Tim Starling <tstarling@wikimedia.org> | 2023-07-25 10:49:51 +1000 |
commit | 2b608a35ede101dbfe4c1195bd8776475fee722f (patch) | |
tree | 814f7d6c7562c905235f708e5aec10804d4f9fe0 /includes/diff/UnsupportedSlotDiffRenderer.php | |
parent | b81e02c18d78c3e35e3b417830d7f859975b6a94 (diff) | |
download | mediawikicore-2b608a35ede101dbfe4c1195bd8776475fee722f.tar.gz mediawikicore-2b608a35ede101dbfe4c1195bd8776475fee722f.zip |
Add an API-only user preference for diff type
* Add an API-only user preference for diff type
* Retain query parameter stickiness but fix it so that the diff-type
from user preferences does not leak into the query string. So the
no-JS control continues to work. If a no-JS user has the inline
preference set, respect it on the initial load, but add an explicit
diff-type=table to the query string of the table link so that the
preference can be overridden.
* Get the diff type from the initial state of the no-JS button. Infuse
the widget to access the active property using the OOUI public API.
* For a logged-in user, when the JS toggle is clicked, fetch the new
diff body and update the user preference.
* For an anonymous user, when the JS toggle is clicked, update the
prev/next links to include the correct diff-type query parameter.
Bug: T336713
Change-Id: Ie409d79ac8222dfa6ec8fd170b76be088be80b3a
Diffstat (limited to 'includes/diff/UnsupportedSlotDiffRenderer.php')
0 files changed, 0 insertions, 0 deletions