fix(ui): toggleRestrictedMedia war im falschen Template (screenOverviewTmpl statt manageTmpl)
This commit is contained in:
parent
e99cac4719
commit
251e1fb15e
1 changed files with 12 additions and 11 deletions
|
|
@ -1414,6 +1414,18 @@ function startUpload() {
|
||||||
setTimeout(function() { img.src = img.dataset.src + '?t=' + Date.now(); }, 4000);
|
setTimeout(function() { img.src = img.dataset.src + '?t=' + Date.now(); }, 4000);
|
||||||
});
|
});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
function toggleRestrictedMedia(btn) {
|
||||||
|
var showing = btn.dataset.showing === '1';
|
||||||
|
showing = !showing;
|
||||||
|
btn.dataset.showing = showing ? '1' : '0';
|
||||||
|
document.querySelectorAll('.lib-card[data-owner-restricted="true"]').forEach(function(el) {
|
||||||
|
el.style.display = showing ? 'flex' : 'none';
|
||||||
|
});
|
||||||
|
btn.textContent = showing ? 'Einschränken' : 'Alles anzeigen';
|
||||||
|
btn.classList.toggle('is-info', showing);
|
||||||
|
btn.classList.toggle('is-light', !showing);
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>`
|
</html>`
|
||||||
|
|
@ -1706,17 +1718,6 @@ function clearScreenOverride(slug) {
|
||||||
}).catch(function(){});
|
}).catch(function(){});
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleRestrictedMedia(btn) {
|
|
||||||
var showing = btn.dataset.showing === '1';
|
|
||||||
showing = !showing;
|
|
||||||
btn.dataset.showing = showing ? '1' : '0';
|
|
||||||
document.querySelectorAll('.lib-card[data-owner-restricted="true"]').forEach(function(el) {
|
|
||||||
el.style.display = showing ? 'flex' : 'none';
|
|
||||||
});
|
|
||||||
btn.textContent = showing ? 'Einschränken' : 'Alles anzeigen';
|
|
||||||
btn.classList.toggle('is-info', showing);
|
|
||||||
btn.classList.toggle('is-light', !showing);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>`
|
</html>`
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue