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
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment