Allow skins to place notification container for mw.notify
authorMoriel Schottlender <moriel@gmail.com>
Tue, 30 Aug 2016 23:02:18 +0000 (16:02 -0700)
committerEsanders <esanders@wikimedia.org>
Thu, 6 Sep 2018 15:06:07 +0000 (15:06 +0000)
commita7ac3b834372825ac38f368d0dbbf792708c98c5
tree8a8c71027d26f1ebfa65e9b359853fc7e0ff22de
parenta0cd95dcb51d8c447789ae855e54d58989777ce9
Allow skins to place notification container for mw.notify

Give skins the ability to place the mw.notification notifications
in a div of their choosing rather than force the container to be
in the content area.

This is particularly useful for skins that deal with multiple
overlays that are created and displayed outside the content div,
which then in turn hides the notification area. A good example of
this behavior is in MobileFrontend's overlays that are created as
siblings to the content div, and so all mw.notify() notifications
are then hidden behind them.

Bug: T143837
Bug: T202466
Change-Id: I5a78949efef88083bdafc4207a6872c76b463970
resources/src/mediawiki.notification/notification.js