Dynamically update stream and transcoder tooltip percent

This commit is contained in:
JonnyWong16 2016-11-14 21:10:48 -08:00
commit 8c7c0101cd

View file

@ -204,8 +204,11 @@
// update the progress bars // update the progress bars
// percent - 3 because of 3px padding-right // percent - 3 because of 3px padding-right
$('#bufferbar-' + key).width(parseInt(s.transcode_progress) - 3 + '%').html(s.transcode_progress + '%'); $('#bufferbar-' + key).width(parseInt(s.transcode_progress) - 3 + '%').html(s.transcode_progress + '%')
$('#bar-' + key).width(parseInt(s.progress_percent) - 3 + '%').html(s.progress_percent + '%'); .attr('data-original-title', 'Transcoder Progress ' + s.transcode_progress + '%');
$('#bar-' + key).width(parseInt(s.progress_percent) - 3 + '%').html(s.progress_percent + '%')
.attr('data-original-title', 'Stream Progress ' + s.progress_percent + '%');
// add temporary class so we know which instances are still active // add temporary class so we know which instances are still active
instance.addClass('updated-temp'); instance.addClass('updated-temp');