summaryrefslogtreecommitdiffstats
path: root/js/gradings.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-14 02:39:45 +0200
committerrstular <rok@stular.eu>2020-05-14 02:39:45 +0200
commitc3b6d083be07da2831bff06496137200547fc947 (patch)
tree576605f06170b146b5652496cc41dc6b0c051020 /js/gradings.js
parentMinor styling fix (diff)
downloadbeziapp-c3b6d083be07da2831bff06496137200547fc947.tar
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.gz
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.bz2
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.lz
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.xz
beziapp-c3b6d083be07da2831bff06496137200547fc947.tar.zst
beziapp-c3b6d083be07da2831bff06496137200547fc947.zip
Diffstat (limited to '')
-rw-r--r--js/gradings.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/gradings.js b/js/gradings.js
index c55e743..747679a 100644
--- a/js/gradings.js
+++ b/js/gradings.js
@@ -137,10 +137,10 @@ function gradingClickHandler(eventClickInfo) {
let grading_date_obj = gradings[grading_id]["date"];
let grading_date = dateString.longFormatted(grading_date_obj);
let grading_description = gradings[grading_id]["description"];
- document.getElementById("grading-subject").innerText = grading_subject;
- document.getElementById("grading-date").innerText = grading_date;
- document.getElementById("grading-description").innerText = grading_description;
- const modal = document.querySelectorAll('.side-modal')[0];
+ $("#grading-subject").text(grading_subject);
+ $("#grading-date").text(grading_date);
+ $("#grading-description").text(grading_description);
+ const modal = document.querySelectorAll(".side-modal")[0];
M.Sidenav.getInstance(modal).open();
}
/*