mw.notification: Re-implement autoHideSeconds as string preset option
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 20 Jan 2017 03:25:59 +0000 (03:25 +0000)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 22 Jan 2017 07:43:18 +0000 (07:43 +0000)
commitcda84660c5a1f3ff2e6ce9c11ac0936b7c123a07
treeece6d3888b973459cb65317f75cb188e6c602356
parentb47c30ad8d3b5277e46cd8877467c67229b8d397
mw.notification: Re-implement autoHideSeconds as string preset option

Instead of allowing freeform number values, make it a preset-based
string where pre-defined values are encouraged.

A numerical override is still possible by creating a new preset,
but this undocumented/private for now.

Follows-up 4b9992a0, which added this option. No usage found
as of yet in Wikimedia Git, thus no deprecation/back-compat.

Also:
* Unbreaks `#autoHideSeconds` reference in #autoHideLimit doc.
* Improve wording of #autoHideLimit doc.

Bug: T155228
Change-Id: Id84d8b616fe26b9976263f4bd6bdc70cc8a539ba
resources/src/mediawiki/mediawiki.notification.js