mediawiki.notification: Use css() instead of slow show()/hide()
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 4 Oct 2017 20:08:46 +0000 (21:08 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Wed, 4 Oct 2017 20:08:46 +0000 (21:08 +0100)
commit0a1d26210c379774b481a82e1c4ab5135906ec8e
tree0f125143712d9b190d65c79ed58f5e9c58682613
parent5c6dc0c61d93423763f4eccaf577331aef224fb0
mediawiki.notification: Use css() instead of slow show()/hide()

There is a lot of complexity and overhead involved with show()
and hide() methods for back-compat and edge cases that we don't
want to involve here (such as storing the last known display,
figuring out the default display, dealing with elements hidden
by default via CSS rules etc.).

We know the stylesheet does not hide the element by default, so
we merely need to set or unset the 'display: none;' inline style.

Ref T159911.

Change-Id: Ia22a2adddddf8514368124d93e3a753440814d97
resources/src/mediawiki/mediawiki.notification.js