The unsave() method sets the current job status to not saved, permitting the job to be canceled.
unsave( onSuccess , onFailure )
|
onSuccess |
Function |
(Optional) Function to call on successful operation. |
|
onFailure |
Function |
(Optional) Function to call on unsuccessful operation. |
var context = this.getContext();
var search = context.get('search');
search.job.unsave(
function() { console.log('Current job successfully unsaved!'); },
function() { console.log('Failed to unsave the current job!'); } );