mediawiki-extensions-Echo/modules/ui
Moriel Schottlender e9264022a7 (re)Add JavaScript hooks to Notifications
Added the following Javascript hooks:
* ext.echo.notifications.beforeRender: Firing before a group of
  notification widgets are rendered, whether in the popup, in
  the special page, or in a cross-wiki bundle (which requires
  async loading)
* ext.echo.badge.countChange: Fired when the badge count changes
  with the notification type, count and the label count for
  display purposes.
* ext.echo.popup.onInitialize: Fired when the popup is opened and
  after notifications were fetched, with the context of the popup
  notification type.
* ext.echo.special.onInitialize: Fired when the special page is
  ready and notifications were fetched. Note that it will be fired
  whenever the special page is updated with notifications list,
  as well, like when changing filter, remote wiki or pagination.

The hooks were also documented in hooks.txt

Bug: T146296
Change-Id: Ie3dc97f97e8d1f90b67f62fcdc65dd29cb379aad
2016-10-14 17:25:25 -05:00
..
mw.echo.ui.ActionMenuPopupWidget.js Add dynamic secondary actions to notification items 2016-08-22 16:04:48 -07:00
mw.echo.ui.BadgeLinkWidget.js (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
mw.echo.ui.BundleNotificationItemWidget.js Remove primary link from the bundle of page linked notification 2016-09-19 14:16:43 -07:00
mw.echo.ui.ClonedNotificationItemWidget.js Fix fade-in/out animation in sorting 2016-08-01 13:49:10 -07:00
mw.echo.ui.ConfirmationPopupWidget.js Add confirmation popup widget 2016-08-31 14:47:59 -07:00
mw.echo.ui.CrossWikiNotificationItemWidget.js Convert 'seenTime' to a global property 2016-09-19 14:37:31 -07:00
mw.echo.ui.CrossWikiUnreadFilterWidget.js Store local source as 'local' rather than dbName 2016-07-07 12:20:39 -07:00
mw.echo.ui.DatedNotificationsWidget.js Fix fade-in/out animation in sorting 2016-08-01 13:49:10 -07:00
mw.echo.ui.DatedSubGroupListWidget.js Round timestamps to the day when displaying date titles in Special:Notifications 2016-08-04 12:58:06 -07:00
mw.echo.ui.FooterNoticeWidget.js Add a footer notice inviting users to visit the Special:Notifications page 2016-08-02 13:59:04 -07:00
mw.echo.ui.js Refactoring Echo's front end for MVC 2016-05-18 12:28:45 -07:00
mw.echo.ui.MenuItemWidget.js Dynamic actions: Reuse label/description for those fields 2016-08-25 22:00:25 -04:00
mw.echo.ui.NotificationBadgeWidget.js (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
mw.echo.ui.NotificationItemWidget.js Add dynamic secondary actions to notification items 2016-08-22 16:04:48 -07:00
mw.echo.ui.NotificationsInboxWidget.js (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
mw.echo.ui.NotificationsListWidget.js (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
mw.echo.ui.NotificationsWrapper.js Display a message when API fail due to session end 2016-08-29 12:56:56 -07:00
mw.echo.ui.PageFilterWidget.js Allow for count cap display in Special:Notifications sidebar 2016-09-12 16:35:38 -07:00
mw.echo.ui.PageNotificationsOptionWidget.js Allow for count cap display in Special:Notifications sidebar 2016-09-12 16:35:38 -07:00
mw.echo.ui.PaginationWidget.js Merge "i18n: Native digits on PageNotificationsOptionWidget and PaginationWidget" 2016-07-19 21:53:38 +00:00
mw.echo.ui.PlaceholderItemWidget.js Support for PlaceholderWidget with no link 2016-06-22 12:54:13 -04:00
mw.echo.ui.ReadStateButtonSelectWidget.js Filter notifications by read state in Special:Notifications 2016-05-27 13:47:41 -07:00
mw.echo.ui.SingleNotificationItemWidget.js Emit sortChange only for read/unread actions 2016-08-15 16:53:09 -07:00
mw.echo.ui.SortedListWidget.js Emit sortChange only for read/unread actions 2016-08-15 16:53:09 -07:00
mw.echo.ui.SpecialHelpMenuWidget.js Log 'mark all read' button click actions 2016-08-05 13:33:47 -07:00
mw.echo.ui.SubGroupListWidget.js (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
mw.echo.ui.ToggleReadCircleButtonWidget.js Change mark as read buttons to circles 2016-06-21 11:54:00 -07:00