mediawiki-extensions-Echo/modules
Moriel Schottlender 951f146b54 Emit sortChange only for read/unread actions
Do not emit sortChange for toggleSeen, because every sortChange
creates a fake widget with a flipped 'read' state. There is no
reason to emit the sortChange event in toggleSeen anyways so it
is safer when only emitted in togglRead.

Also, make sure the controller always updates the correct seenTime
from the API when fetching local notifications. This was done for
the special page method but was overlooked for the fetching of local
notifications. For the most part, it shouldn't be affecting too much
because the SeenTimeModel is initialized with wgEchoSeenTime (which
is local) but updating the controller with the API response is the
safe thing to do, and will also cover cases where a tab was open,
notifications were seen in a different tab, and now the popup was
reopened in a "stale" tab again.

Bug: T143067
Change-Id: Ie261e32db28926d04fe14f7badd9d287ddc52749
2016-08-15 16:53:09 -07:00
..
api Enable local bundles on mobile 2016-08-04 10:42:11 -04:00
controller Emit sortChange only for read/unread actions 2016-08-15 16:53:09 -07:00
icons Bundle mention success and failure notifications 2016-08-13 08:08:12 +00:00
logger Log 'mark all read' button click actions 2016-08-05 13:33:47 -07:00
model Implement subject+talk and null+user page grouping 2016-08-02 13:48:48 -07:00
nojs Merge "Revert "Hack around browser bug in IE breaking badge alignment in Monobook"" 2016-08-11 23:27:25 +00:00
special Enable local bundles on mobile 2016-08-04 10:42:11 -04:00
styles Make footer notice link blue in Monobook 2016-08-15 11:13:01 -07:00
ui Emit sortChange only for read/unread actions 2016-08-15 16:53:09 -07:00
echo.mixins.less Truncate usernames, titles and excerpts in notifications 2016-01-29 07:04:23 -05:00
echo.variables.less Redo the notification badges 2016-07-27 11:51:05 -07:00
echo.variables.monobook.less Redo the notification badges 2016-07-27 11:51:05 -07:00
echo.variables.vector.less Redo the notification badges 2016-07-27 11:51:05 -07:00
ext.echo.init.js Merge "Enable local bundles on mobile" 2016-08-05 22:00:35 +00:00
ext.echo.moment-hack.js Use localized weekdays on Special:Notifications 2016-06-13 13:09:51 +01:00
hooks.txt
mw.echo.js Reduce number of prioritized actions in mobile 2016-08-01 16:31:18 -07:00