From 8c7c0101cd1c5953d09bac6ae8a4676cd4172b8f Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 14 Nov 2016 21:10:48 -0800 Subject: [PATCH] Dynamically update stream and transcoder tooltip percent --- data/interfaces/default/index.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html index d7a597b8..7724ed62 100644 --- a/data/interfaces/default/index.html +++ b/data/interfaces/default/index.html @@ -204,8 +204,11 @@ // update the progress bars // percent - 3 because of 3px padding-right - $('#bufferbar-' + key).width(parseInt(s.transcode_progress) - 3 + '%').html(s.transcode_progress + '%'); - $('#bar-' + key).width(parseInt(s.progress_percent) - 3 + '%').html(s.progress_percent + '%'); + $('#bufferbar-' + key).width(parseInt(s.transcode_progress) - 3 + '%').html(s.transcode_progress + '%') + .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 instance.addClass('updated-temp');