CC-3722: Create loading indicator for AJAX call when calculating Show length
- done
This commit is contained in:
parent
cf4101cdcd
commit
c9df8e8b15
3 changed files with 5 additions and 1 deletions
|
@ -460,9 +460,12 @@ function setAddShowEvents() {
|
|||
})
|
||||
|
||||
function calculateDuration(endDateTime, startDateTime){
|
||||
var duration;
|
||||
var loadingIcon = $('#icon-loader-small');
|
||||
|
||||
loadingIcon.show();
|
||||
$.post("/Schedule/calculate-duration", {startTime: startDateTime, endTime: endDateTime}, function(data){
|
||||
$('#add_show_duration').val(JSON.parse(data));
|
||||
loadingIcon.hide();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue