third_party/mapreduce/mapreduce/static/status.js
function listConfigs(resultFunc) {
  $.ajax({
    type: 'GET',
    url: 'command/list_configs',
    dataType: 'text',
    error: function(request, textStatus) {
      getResponseDataJson(textStatus);
    },
    success: function(data, textStatus, request) {
      var response = getResponseDataJson(null, data);
      if (response) {
        resultFunc(response.configs);
      }
    }
  });
}
function listConfigs(resultFunc) {
  $.ajax({
    type: 'GET',
    url: 'command/list_configs',
    dataType: 'text',
    error: function(request, textStatus) {
      getResponseDataJson(textStatus);
    },
    success: function(data, textStatus, request) {
      var response = getResponseDataJson(null, data);
      if (response) {
        resultFunc(response.configs);
      }
    }
  });
}
function listConfigs ( resultFunc ) { $ . ajax ( { type : 'GET' , url : 'command/list_configs' , dataType : 'text' , error : function ( request , textStatus ) { getResponseDataJson ( textStatus ) ; } , success : function ( data , textStatus , request ) { var response = getResponseDataJson ( null , data ) ; if ( response ) { resultFunc ( response . configs ) ; } } } ) ; }
Retrieve the list of configs.
Retrieve the list of configs .