CC-3753 : Cannot cancel record show on Timeline view
This commit is contained in:
parent
7f18f3b329
commit
a4b949cc2f
2 changed files with 10 additions and 4 deletions
|
@ -834,7 +834,8 @@ var AIRTIME = (function(AIRTIME){
|
|||
$toolbar.find('.sb-button-cancel')
|
||||
.click(function() {
|
||||
var $tr,
|
||||
data;
|
||||
data,
|
||||
msg = 'Cancel Current Show?';
|
||||
|
||||
if (AIRTIME.button.isDisabled('sb-button-cancel') === true) {
|
||||
return;
|
||||
|
@ -845,7 +846,11 @@ var AIRTIME = (function(AIRTIME){
|
|||
if ($tr.hasClass('sb-current-show')) {
|
||||
data = $tr.data("aData");
|
||||
|
||||
if (confirm('Cancel Current Show?')) {
|
||||
if (data.record === true) {
|
||||
msg = 'Erase current show and stop recording?';
|
||||
}
|
||||
|
||||
if (confirm(msg)) {
|
||||
var url = "/Schedule/cancel-current-show";
|
||||
$.ajax({
|
||||
url: url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue