MediaWiki:MonthlyConvert.js

From Donate
Revision as of 16:14, 22 July 2021 by Pcoombe (talk | contribs) (basic modal navigation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
$(function() {
	$( '.mc-diff-amount-link' ).on( 'click keypress', function ( e ) {
		if ( e.which === 13 || e.type === 'click' ) {
			$( '.mc-choice' ).fadeOut( function () {
				$( '.mc-edit-amount' ).fadeIn();
				$( '.mc-back' ).fadeIn();
				$( '.mc-other-amount-input' ).focus();
			} );
		}
	} );
	$( '.mc-back' ).on( 'click keypress', function ( e ) {
		if ( e.which === 13 || e.type === 'click' ) {
			$( '.mc-back' ).fadeOut();
			$( '.mc-edit-amount' ).fadeOut( function () {
				$( '.mc-choice' ).fadeIn();
			} );
		}
	} );
});