public/js/watched_episodes.js
Avoid deeply nested control flow statements. Open
Open
if (episode.ratio !== undefined) {
var progressBar = $('div#progress_' + id);
ratioInfo = 'width: ' + parseInt(episode.ratio) + '%;';
progressBar.attr('style', ratioInfo);
progressBar.removeClass('hidden');