w/extensions/MobileFrontend/resources/mobile.special.uploads.scripts/uploads.js
/**
	 * Initialise a photo upload button at the top of the page.
	 * @ignore
	 * @param {mw.Api} api
	 */
Initialise a photo upload button at the top of the page.
Initialise a photo upload button at the top of the page .
function init( api ) {
		if ( $( '.errorbox' ).length === 0 ) {
			new PhotoList( {
				api: api,
				username: userName
			} ).appendTo( '#mw-content-text .content' );
		}
	}
function init ( api ) { if ( $ ( '.errorbox' ) . length === 0 ) { new PhotoList ( { api : api , username : userName } ) . appendTo ( '#mw-content-text .content' ) ; } }
Initialise a photo upload button at the top of the page.
Initialise a photo upload button at the top of the page .
// check there are no errors on the page before attempting // we might have an invalid username