Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Jobs: Allow to cancel restore jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
frb121 committed Jun 2, 2016
1 parent 4c4d1aa commit 3fbbfe7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion module/Job/view/job/job/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,23 @@ $(document).ready(function() {
case 'R':
case 'l':
switch(data.type) {
case 'R':
switch(data.jobstatus) {
case 'R':
case 'l':
return '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="<?php echo $this->basePath() . '/job/cancel/'; ?>'+data.jobid+'" title="Cancel" id="btn-1"><span class="glyphicon glyphicon-trash"></span></a>';
default:
return '';
}
case 'B':
case 'C':
return '<a class="btn btn-default btn-xs" data-toggle="tooltip" data-placement="top" href="<?php echo $this->basePath() . '/job/cancel/'; ?>'+data.jobid+'" title="Cancel" id="btn-1"><span class="glyphicon glyphicon-trash"></span></a>';
default:
return '';
}
default:
return '';
}
return '';
}
}
]
Expand Down

0 comments on commit 3fbbfe7

Please sign in to comment.