diff --git a/webui/static/video/video-get-modal.js b/webui/static/video/video-get-modal.js index 70069722..e21fd3b4 100644 --- a/webui/static/video/video-get-modal.js +++ b/webui/static/video/video-get-modal.js @@ -98,8 +98,11 @@ '' + '
' + '' + - '' + - '' + + '' + + '' + '
' + ''; document.body.appendChild(ov); @@ -201,12 +204,15 @@ var n = modalState ? modalState.sel.size : 0; var cnt = modalEl.querySelector('[data-vgm-count]'); var add = modalEl.querySelector('[data-vgm-wishlist]'); + var addLbl = modalEl.querySelector('[data-vgm-add-label]'); // set label only (keep the icon) if (modalState && modalState.kind === 'show') { if (cnt) cnt.textContent = n + ' episode' + (n === 1 ? '' : 's') + ' selected'; - if (add) { add.textContent = '+ Add ' + n + ' to Wishlist'; add.disabled = n === 0; } + if (addLbl) addLbl.textContent = '+ Add ' + n + ' to Wishlist'; + if (add) add.disabled = n === 0; } else { if (cnt) cnt.textContent = ''; - if (add) { add.textContent = '+ Add to Wishlist'; add.disabled = false; } + if (addLbl) addLbl.textContent = '+ Add to Wishlist'; + if (add) add.disabled = false; } }