WebContent/js/details/job.js
//size is in pixels and color is a string

size is in pixels and color is a string
size is in pixels and color is a string
function updateSolverComparison(size, color) {
	var config1 = $("#solverChoice1 option:selected").attr("value");
	var config2 = $("#solverChoice2 option:selected").attr("value");
	var postUrl = '';
	if (DETAILS_JOB.isAnonymousPage) {
		postUrl = starexecRoot + "services/jobs/anonymousLink/" + DETAILS_JOB.anonymousLinkUuid + "/" + curSpaceId + "/graphs/solverComparison/" + config1 +
			"/" + config2 + "/" + size + "/" + color + "/" + getSelectedStage() + "/" + DETAILS_JOB.primitivesToAnonymize;
	} else {
		postUrl = starexecRoot + "services/jobs/" + curSpaceId + "/graphs/solverComparison/" + config1 + "/" + config2 + "/" + size + "/" + color + "/" + getSelectedStage();
	}
	var xhr = $.post(
		postUrl,
		{},
		function(returnCode) {
			var s = parseReturnCode(returnCode);
			if (s) {
				var jsonObject = $.parseJSON(returnCode);
				var src = jsonObject.src;
				var map = jsonObject.map;
				$("#solverComparison" + size).attr("src", src);
				$("#solverComparisonMap" + size).remove();
				if (size == 800) {
					$("#dialog-solverComparison").append(map);
				} else {
					$("#graphField").append(map);
					updateSolverComparison(800, "black");
				}
			} else {
				$("#solverComparison300")
				.attr("src", starexecRoot + "/images/noDisplayGraph.png");
			}
		},
		"text"
	);
	openAjaxRequests.push(xhr);
}
function updateSolverComparison ( size , color ) { var config1 = $ ( "#solverChoice1 option:selected" ) . attr ( "value" ) ; var config2 = $ ( "#solverChoice2 option:selected" ) . attr ( "value" ) ; var postUrl = '' ; if ( DETAILS_JOB . isAnonymousPage ) { postUrl = starexecRoot + "services/jobs/anonymousLink/" + DETAILS_JOB . anonymousLinkUuid + "/" + curSpaceId + "/graphs/solverComparison/" + config1 + "/" + config2 + "/" + size + "/" + color + "/" + getSelectedStage ( ) + "/" + DETAILS_JOB . primitivesToAnonymize ; } else { postUrl = starexecRoot + "services/jobs/" + curSpaceId + "/graphs/solverComparison/" + config1 + "/" + config2 + "/" + size + "/" + color + "/" + getSelectedStage ( ) ; } var xhr = $ . post ( postUrl , { } , function ( returnCode ) { var s = parseReturnCode ( returnCode ) ; if ( s ) { var jsonObject = $ . parseJSON ( returnCode ) ; var src = jsonObject . src ; var map = jsonObject . map ; $ ( "#solverComparison" + size ) . attr ( "src" , src ) ; $ ( "#solverComparisonMap" + size ) . remove ( ) ; if ( size == 800 ) { $ ( "#dialog-solverComparison" ) . append ( map ) ; } else { $ ( "#graphField" ) . append ( map ) ; updateSolverComparison ( 800 , "black" ) ; } } else { $ ( "#solverComparison300" ) . attr ( "src" , starexecRoot + "/images/noDisplayGraph.png" ) ; } } , "text" ) ; openAjaxRequests . push ( xhr ) ; }
size is in pixels and color is a string
size is in pixels and color is a string