Fix for checkbox enabling

This commit is contained in:
Georgy Litvinov 2020-11-30 22:03:40 +01:00
parent fa3027629e
commit 50d53cd080

View file

@ -265,10 +265,9 @@ for (i = 0; i < coll.length; i++) {
</#if> </#if>
<script> <script>
console.log(localStorage.getItem('switchExpand'));
if (localStorage.getItem('switchExpand') === true || localStorage.getItem('switchExpand') === 'true') { if (localStorage.getItem('switchExpand') === true || localStorage.getItem('switchExpand') === 'true') {
console.log("show html excerpts");
$('.htmlExcerpt').show(); $('.htmlExcerpt').show();
document.getElementById("expandlCB").checked = true;
} }
function switchExpand(){ function switchExpand(){
var checkBox = document.getElementById("expandlCB"); var checkBox = document.getElementById("expandlCB");