Skip to content

Instantly share code, notes, and snippets.

@PilotBob
Created January 25, 2016 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PilotBob/a15ced013b60d3e17bfc to your computer and use it in GitHub Desktop.
Save PilotBob/a15ced013b60d3e17bfc to your computer and use it in GitHub Desktop.
$.ajax(baseUrl + "/eFinancials/Lookup/JobForProperty",
{
data: {
property: propertyIdField.val(),
allJobs: true,
term: jobIdField.val()
},
success: function (data) {
if (data[0]) {
jobKeyField.val(data[0].id);
}
IsJobValid(grid, row, false)
.then(IsJobClosed(grid, row))
.then(GetJobDetails(grid, row, true))
.then(UpdateIncome(grid, row, jobIdFieldRow));
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment