Skip to content
Snippets Groups Projects
Commit 3fcf1265 authored by Andreas Valder's avatar Andreas Valder
Browse files

no longer showing "loading" as viewcount if there is no data

parent 3fbbb345
Branches
No related tags found
No related merge requests found
......@@ -99,6 +99,12 @@ $.ajax({
for (var i=0; i<counter.length; i++) {
$(counter[i]).text(dates[$(counter[i]).data("lecturedate")]);
}
var counter = $(".viewcounter");
for (var i=0; i<counter.length; i++) {
if ($(counter[i]).text() == "loading...") {
$(counter[i]).text("0");
}
}
}
});
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment