Go to file
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
db_patches Dynamic bundles 2016-06-27 09:49:13 -04:00
i18n Localisation updates from https://translatewiki.net. 2016-08-15 22:58:37 +02:00
images Initial version of Special:Notifications Javascript page 2016-05-27 13:42:25 -07:00
includes Follow-up 4e64643eb: Count pageless notifications when counting pageless notifications 2016-08-15 11:35:28 -07:00
maintenance Generate sample notifications for Wikibase 2016-08-04 16:49:06 +00:00
modules Emit sortChange only for read/unread actions 2016-08-15 16:53:09 -07:00
scripts Cleanup old notification formatting system 2016-07-11 16:57:14 +00:00
tests Fix mention failures not beeing sent. 2016-08-15 14:25: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 Add .gitreview file 2012-04-28 01:26:21 +10:00
.jscsrc Add JSDuck support and fix errors 2016-05-11 14:07:12 -07: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 Prevent duplicate thank-you-edit notifications 2016-08-03 14:49:23 -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 Bundle mention success and failure notifications 2016-08-13 08:08:12 +00:00
echo.sql Dynamic bundles 2016-06-27 09:49:13 -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 noisy logging of every single thank-you-edit notification 2016-08-15 22:07:24 +00:00
jsduck.external.js Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck.json Add JSDuck support and fix errors 2016-05-11 14:07:12 -07:00
jsduck_custom_tags.rb Add JSDuck support and fix errors 2016-05-11 14:07:12 -07: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 Merge "Add a footer notice inviting users to visit the Special:Notifications page" 2016-08-03 19:51:08 +00:00