Zrušení console.log-ů

This commit is contained in:
Pavel "LEdoian" Turinsky 2023-02-27 20:25:45 +01:00
parent 32dc97e1c4
commit e42b6abec5

View file

@ -11,10 +11,8 @@
<script src="{% static 'odevzdavatko/check_for_detail.js' %}"></script>
<script type="text/javascript">
$(document).ready(function () {
console.log("I am ready!");
const zaskrtavatko = document.getElementById('pridat-jmena-resitelu');
zaskrtavatko.addEventListener('change', () => {
console.log("Changing!");
for (var priloha of document.getElementsByClassName("reseni-ke-stazeni")) {
let new_download = zaskrtavatko.checked ? priloha.dataset.altFilename : '';
priloha.setAttribute('download', new_download);