diff options
author | Anton L. Šijanec <sijanecantonluka@gmail.com> | 2020-05-13 14:16:35 +0200 |
---|---|---|
committer | Anton L. Šijanec <sijanecantonluka@gmail.com> | 2020-05-13 14:16:35 +0200 |
commit | 03300db08084d6961377630fd865fe9e209286f5 (patch) | |
tree | 64e1c4b7dc18f3f6e41f6343c9f1425ee23f5e4b /js | |
parent | DNM; more update (diff) | |
download | beziapp-03300db08084d6961377630fd865fe9e209286f5.tar beziapp-03300db08084d6961377630fd865fe9e209286f5.tar.gz beziapp-03300db08084d6961377630fd865fe9e209286f5.tar.bz2 beziapp-03300db08084d6961377630fd865fe9e209286f5.tar.lz beziapp-03300db08084d6961377630fd865fe9e209286f5.tar.xz beziapp-03300db08084d6961377630fd865fe9e209286f5.tar.zst beziapp-03300db08084d6961377630fd865fe9e209286f5.zip |
Diffstat (limited to 'js')
-rw-r--r-- | js/absences.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/absences.js b/js/absences.js index 0540f1f..a3d33cd 100644 --- a/js/absences.js +++ b/js/absences.js @@ -67,6 +67,10 @@ async function loadAbsences(force_refresh = false) { }); value.length = tillKey+1; // tillKey in value.splice(0, fromKey); // fromKey hočemo obdržati + if(tillKey == 0 && fromKey == -1) { + // očitno je karantena in ni nobenih izostnakov + value.length = 0; + } absences = value; localforage.setItem("absences", value).then((value) => { displayData(); |