Pmiazga has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/398530 )
Change subject: Show toast messages without 1s delay ...................................................................... Show toast messages without 1s delay Toast message should be visible immediately, not after some delay Read more: https://phabricator.wikimedia.org/T169807#3841337 Bug: T169807 Change-Id: I505cd8266e87379da9522b1c11208a557af58656 --- M resources/mobile.special.mobileoptions.scripts/mobileoptions.js 1 file changed, 1 insertion(+), 7 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/30/398530/1 diff --git a/resources/mobile.special.mobileoptions.scripts/mobileoptions.js b/resources/mobile.special.mobileoptions.scripts/mobileoptions.js index 9a77ccd..38bef98 100644 --- a/resources/mobile.special.mobileoptions.scripts/mobileoptions.js +++ b/resources/mobile.special.mobileoptions.scripts/mobileoptions.js @@ -1,6 +1,5 @@ ( function ( M, $ ) { var storage = mw.storage, - notification, toast = M.require( 'mobile.startup/toast' ), EXPAND_SECTIONS_KEY = 'expandSections', msg = mw.msg, @@ -13,15 +12,10 @@ * @ignore */ function notify( isPending ) { - if ( notification ) { - clearTimeout( notification ); - } if ( isPending ) { toast.showOnPageReload( msg( 'mobile-frontend-settings-save' ) ); } else { - notification = setTimeout( function () { - toast.show( msg( 'mobile-frontend-settings-save' ) ); - }, 1000 ); + toast.show( msg( 'mobile-frontend-settings-save' ) ); } } /** -- To view, visit https://gerrit.wikimedia.org/r/398530 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I505cd8266e87379da9522b1c11208a557af58656 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: specialpages Gerrit-Owner: Pmiazga <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
