User:Avanidhar/nice.js

QueryString(location.search.substring(1, location.search.length)) if(QueryString.exists("undo")){ revisionId = QueryString.get("undo") REVERTED.revisionId = revisionId //Start AJAX call sequence params = new Object params.action = 'query' params.prop = 'revisions' params.revids = revisionId params.rvprop = 'user' params.format = 'json' WPAPIHandler.performGET(		params, 		checkForPreviousEdits, 		{}, 		function(message){			LOGGER.error(wgUserName, REVERTED.revisionId, "Searching for username using revisionId", message)			showErrorWhenReady(message)		}	) //Start ready catcher createSaveFormWhenReady }