Go to file
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
db_patches Remove etp_user 2016-09-09 09:32:28 -04:00
i18n Localisation updates from https://translatewiki.net. 2016-09-23 22:32:52 +02:00
images Initial version of Special:Notifications Javascript page 2016-05-27 13:42:25 -07:00
includes Defer cache write in EchoSeenTime::setTime() 2016-09-23 12:11:37 -07:00
maintenance Remove etp_user 2016-09-09 09:32:28 -04:00
modules (re)Add JavaScript hooks to Notifications 2016-10-14 17:25:25 -05:00
scripts Fix autoloader for I3a426b92892f4c00cab33a13f6a717751120367c 2016-08-29 19:05:10 -04:00
tests Send notification for mentions on changes 2016-09-14 12:36:22 +02:00
.csslintrc Add Grunt infrastructure for CI 2015-05-01 20:35:23 -07:00
.gitignore Add .idea/ folder to gitignore 2016-07-20 18:58:23 +02:00
.gitreview
.jscsrc jsduck: Remove custom @source tag 2016-09-21 00:51:46 +01:00
.jshintignore Recurse into sub folders for jshint and jscs 2015-11-09 12:52:42 +00:00
.jshintrc Update formatting 2015-10-03 23:28:54 -04:00
.mailmap Add Kunal, Moriel, Jon to credits; add mailmap file 2015-12-15 16:30:19 -08:00
.rubocop.yml Fixed Metrics/LineLength RuboCop offense 2015-09-29 14:59:05 +02:00
autoload.php Remove etp_user 2016-09-09 09:32:28 -04:00
composer.json Remove forced -p (progress) flag from phpcs.xml 2016-04-26 14:21:28 -07:00
COPYING Add COPYING 2014-01-24 16:00:24 -08:00
Echo.alias.php Add mark-as-read button to notifications in Special:Notifications 2016-05-11 10:41:32 -07:00
Echo.php Send notification for mentions on changes 2016-09-14 12:36:22 +02:00
echo.sql Remove etp_user 2016-09-09 09:32:28 -04:00
Gemfile Browser tests: update to mw-selenium 1.7.2 and https 2016-08-11 15:47:42 -04:00
Gemfile.lock Browser tests: update to mw-selenium 1.7.2 and https 2016-08-11 15:47:42 -04:00
Gruntfile.js Ignore docs folder in all grunt tasks 2016-05-16 13:59:43 -07:00
Hooks.php Remove unused $flags parameter for EchoSeenTime::getTime() 2016-09-23 11:53:59 -07:00
jsduck.external.js jsduck: Remove custom @source tag 2016-09-21 00:51:46 +01:00
jsduck.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck_custom_tags.rb jsduck: Remove custom @source tag 2016-09-21 00:51:46 +01:00
Makefile Remove legacy qunit handling from Echo 2016-03-31 19:09:48 +00:00
package.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
phpcs.xml Remove forced -p (progress) flag from phpcs.xml 2016-04-26 14:21:28 -07:00
Rakefile Migration of browsertests* Jenkins jobs to selenium* jobs 2016-04-25 17:54:45 +02:00
RELEASE_NOTES BREAKING CHANGE: Use ISO 8601 for 'ts' in cross-wiki summary. 2016-07-27 17:00:05 -04:00
Resources.php Add missing dependency to module 'mediawiki.api.options' 2016-09-09 17:42:31 +00:00