mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Merge "Use jQuery 3 .catch( fn ) instead of .then( null, fn )"
This commit is contained in:
commit
8c0c510b33
|
@ -279,8 +279,7 @@
|
|||
this.toggleListDisplay( true );
|
||||
// Query all sources
|
||||
this.controller.fetchCrossWikiNotifications()
|
||||
.then(
|
||||
null,
|
||||
.catch(
|
||||
function ( result ) {
|
||||
var loginPageTitle = mw.Title.newFromText( 'Special:UserLogin' );
|
||||
// If failure, check if the failure is due to login
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
|
||||
this.pushPending();
|
||||
return this.controller.fetchLocalNotifications( true )
|
||||
.then( null, function ( errorObj ) {
|
||||
.catch( function ( errorObj ) {
|
||||
if ( errorObj.errCode === 'notlogin-required' ) {
|
||||
// Login required message
|
||||
widget.notificationsWidget.resetLoadingOption( mw.msg( 'echo-notification-loginrequired' ) );
|
||||
|
|
Loading…
Reference in a new issue