Expand all

mediawiki.watchstar.widgets

This widget is for the contents of the mw.notify popup that is shown when a page's "watchstar" is clicked (i.e. the 'watch this page' link; it may not be a star on all skins). It displays a message that a page is being watched/unwatched; a selection widget that can determine how long the page will be watched; and what watchlist labels should be applied.

Extends

Parameters:

Name Type Description
action string

One of 'watch', 'unwatch'

pageTitle string

Title of page that this widget will watch or unwatch

expiry string | null

ISO 8601 timestamp of the expiry to be pre-selected, or 'infinity'

updateWatchLink function
config Object

Configuration object

Properties:
Name Type Description
$link jQuery
expiryEnabled boolean

Show the expiry dropdown.

labelsEnabled boolean

Show the labels selector.

Source:

Methods

addTabKeyListener()inner #

Allows user to tab into the expiry dropdown from the watch link. Valid only for the initial keystroke after the popup appears, so as to avoid listening to every keystroke for the entire session.

Source:
Allows user to tab into the expiry dropdown from the watch link.