diff --git a/pod/completion/static/js/completion.js b/pod/completion/static/js/completion.js index afb492e01c..18a50c7577 100644 --- a/pod/completion/static/js/completion.js +++ b/pod/completion/static/js/completion.js @@ -132,9 +132,15 @@ var sendandgetform = async function (elt, action, name, form, list) { document.getElementById(form).innerHTML = '
'; - document.querySelectorAll(`#card-completion-tips div:not(#${name}-info) .collapse`).forEach((collapsable) => { - bootstrap.Collapse.getOrCreateInstance(collapsable, { toggle: false }).hide(); - }); + document + .querySelectorAll( + `#card-completion-tips div:not(#${name}-info) .collapse`, + ) + .forEach((collapsable) => { + bootstrap.Collapse.getOrCreateInstance(collapsable, { + toggle: false, + }).hide(); + }); /* Display associated help in side menu */ var compInfo = document.querySelector(`#${name}-info>.collapse`); bootstrap.Collapse.getOrCreateInstance(compInfo).show(); diff --git a/pod/video/static/js/ajax-display-channels.js b/pod/video/static/js/ajax-display-channels.js index fdc1456a4b..3d65adb2ef 100644 --- a/pod/video/static/js/ajax-display-channels.js +++ b/pod/video/static/js/ajax-display-channels.js @@ -101,12 +101,13 @@ function getThemesForSpecificChannel(channelSlug) { */ function setModalTitle(modalContentElement, channelsCount) { const modalTitleElement = modalContentElement.querySelector(".modal-title"); - const channelIcon = ""; + const channelIcon = ''; var channelString = ngettext( `%(count)s channel`, `%(count)s channels`, - channelsCount); - channelString = interpolate(channelString, {count: channelsCount}, true); + channelsCount, + ); + channelString = interpolate(channelString, { count: channelsCount }, true); modalTitleElement.innerHTML = `${channelIcon} ${channelString}`; } @@ -180,8 +181,9 @@ function convertToModalListElement(channel) { var videoString = ngettext( `%(count)s video`, `%(count)s videos`, - channel.videoCount); - videoString = interpolate(videoString, {count: channel.videoCount}, true); + channel.videoCount, + ); + videoString = interpolate(videoString, { count: channel.videoCount }, true); noWrapSpanElement.innerHTML += `${videoString}`; const childAndParentCouples = [