third_party/mapreduce/mapreduce/static/status.js
function cleanUpJob(name, mapreduce_id) {
  if (!confirm('Clean up job "' + name +
               '" with ID "' + mapreduce_id + '"?')) {
    return;
  }

  $.ajax({
    async: false,
    type: 'POST',
    url: 'command/cleanup_job',
    data: {'mapreduce_id': mapreduce_id},
    dataType: 'text',
    error: function(request, textStatus) {
      getResponseDataJson(textStatus);
    },
    success: function(data, textStatus, request) {
      var response = getResponseDataJson(null, data);
      if (response) {
        setButter(response.status);
        if (!response.status.error) {
          $('#row-' + mapreduce_id).remove();
        }
      }
    }
  });
}
function cleanUpJob(name, mapreduce_id) {
  if (!confirm('Clean up job "' + name +
               '" with ID "' + mapreduce_id + '"?')) {
    return;
  }

  $.ajax({
    async: false,
    type: 'POST',
    url: 'command/cleanup_job',
    data: {'mapreduce_id': mapreduce_id},
    dataType: 'text',
    error: function(request, textStatus) {
      getResponseDataJson(textStatus);
    },
    success: function(data, textStatus, request) {
      var response = getResponseDataJson(null, data);
      if (response) {
        setButter(response.status);
        if (!response.status.error) {
          $('#row-' + mapreduce_id).remove();
        }
      }
    }
  });
}
function cleanUpJob ( name , mapreduce_id ) { if ( ! confirm ( 'Clean up job "' + name + '" with ID "' + mapreduce_id + '"?' ) ) { return ; } $ . ajax ( { async : false , type : 'POST' , url : 'command/cleanup_job' , data : { 'mapreduce_id' : mapreduce_id } , dataType : 'text' , error : function ( request , textStatus ) { getResponseDataJson ( textStatus ) ; } , success : function ( data , textStatus , request ) { var response = getResponseDataJson ( null , data ) ; if ( response ) { setButter ( response . status ) ; if ( ! response . status . error ) { $ ( '#row-' + mapreduce_id ) . remove ( ) ; } } } } ) ; }
Cleans up a job with the given name and ID, updates butter with status.
Cleans up a job with the given name and ID updates butter with status .