third_party/mapreduce/mapreduce/static/status.js
function getJobDetail(jobId, resultFunc) {
  $.ajax({
    type: 'GET',
    url: 'command/get_job_detail',
    dataType: 'text',
    data: {'mapreduce_id': jobId},
    statusCode: {
      404: function() {
        setButter('job ' + jobId + ' was not found.', true);
      }
    },
    error: function(request, textStatus) {
      getResponseDataJson(textStatus);
    },
    success: function(data, textStatus, request) {
      var response = getResponseDataJson(null, data);
      if (response) {
        resultFunc(jobId, response);
      }
    }
  });
}
function getJobDetail(jobId, resultFunc) {
  $.ajax({
    type: 'GET',
    url: 'command/get_job_detail',
    dataType: 'text',
    data: {'mapreduce_id': jobId},
    statusCode: {
      404: function() {
        setButter('job ' + jobId + ' was not found.', true);
      }
    },
    error: function(request, textStatus) {
      getResponseDataJson(textStatus);
    },
    success: function(data, textStatus, request) {
      var response = getResponseDataJson(null, data);
      if (response) {
        resultFunc(jobId, response);
      }
    }
  });
}
function getJobDetail ( jobId , resultFunc ) { $ . ajax ( { type : 'GET' , url : 'command/get_job_detail' , dataType : 'text' , data : { 'mapreduce_id' : jobId } , statusCode : { 404 : function ( ) { setButter ( 'job ' + jobId + ' was not found.' , true ) ; } } , error : function ( request , textStatus ) { getResponseDataJson ( textStatus ) ; } , success : function ( data , textStatus , request ) { var response = getResponseDataJson ( null , data ) ; if ( response ) { resultFunc ( jobId , response ) ; } } } ) ; }
Retrieve the detail for a job.
Retrieve the detail for a job .