Jdlrobson has uploaded a new change for review. https://gerrit.wikimedia.org/r/61570
Change subject: It's fail not error ...................................................................... It's fail not error This always gets me. Make sure we bind the function correctly so it runs on an error Change-Id: I600446357db49042362488239b2511a13d7bb477 --- M javascripts/specials/nearby.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/70/61570/1 diff --git a/javascripts/specials/nearby.js b/javascripts/specials/nearby.js index de8af5a..abd4a81 100644 --- a/javascripts/specials/nearby.js +++ b/javascripts/specials/nearby.js @@ -140,7 +140,7 @@ text( mw.message( 'mobile-frontend-nearby-noresults' ).plain() ). appendTo( $content ); } - } ).error( function() { + } ).fail( function() { $( '#mw-mf-nearby' ).addClass( 'alert error content' ).text( mw.message( 'mobile-frontend-nearby-error' ) ); } ); } -- To view, visit https://gerrit.wikimedia.org/r/61570 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I600446357db49042362488239b2511a13d7bb477 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits