CC-3722: Create loading indicator for AJAX call when calculating Show length

- done
This commit is contained in:
James 2012-04-26 11:56:14 -04:00
parent cf4101cdcd
commit c9df8e8b15
3 changed files with 5 additions and 1 deletions

View file

@ -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();
});
}
}