summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-06-03 22:05:47 +0200
committerGitHub <noreply@github.com>2020-06-03 22:05:47 +0200
commit07ff5e29f0c460cd541a1bc6d65b5290ed94de61 (patch)
treede1754a37aa2bf1587a305f8d8a549737ddf3f17 /assets
parentMerge branch 'dev' of https://github.com/beziapp/beziapp.github.io into dev (diff)
parentMerge pull request #21 from beziapp/github-actions-fix (diff)
downloadbeziapp-07ff5e29f0c460cd541a1bc6d65b5290ed94de61.tar
beziapp-07ff5e29f0c460cd541a1bc6d65b5290ed94de61.tar.gz
beziapp-07ff5e29f0c460cd541a1bc6d65b5290ed94de61.tar.bz2
beziapp-07ff5e29f0c460cd541a1bc6d65b5290ed94de61.tar.lz
beziapp-07ff5e29f0c460cd541a1bc6d65b5290ed94de61.tar.xz
beziapp-07ff5e29f0c460cd541a1bc6d65b5290ed94de61.tar.zst
beziapp-07ff5e29f0c460cd541a1bc6d65b5290ed94de61.zip
Diffstat (limited to 'assets')
-rw-r--r--assets/js/gradings.js24
1 files changed, 13 insertions, 11 deletions
diff --git a/assets/js/gradings.js b/assets/js/gradings.js
index bd664bb..4730248 100644
--- a/assets/js/gradings.js
+++ b/assets/js/gradings.js
@@ -156,6 +156,7 @@ function gradingClickHandler(eventClickInfo) {
M.Sidenav.getInstance(modal).open();
}
+
function setupPickers() {
// Setup pickers, todo (adding an event), to be stored in messages
var date_object = new Date();
@@ -171,6 +172,7 @@ function setupPickers() {
}
+
document.addEventListener("DOMContentLoaded", () => {
checkLogin();
// Calendar setup
@@ -188,17 +190,17 @@ document.addEventListener("DOMContentLoaded", () => {
calendar_obj.render();
// Modal for adding gradings
- setupPickers(); // TODO: Hook up submit logic
- // Setup modals
- const modal_elems = document.querySelectorAll('.modal');
- const modal_options = {
- onOpenStart: () => { $("#fab-new").hide() },
- onCloseEnd: () => { $("#fab-new").show() },
- dismissible: false
- };
- $("#input-grading-name").on("blur", validateInputs);
- $("#input-grading-description").on("blur", validateInputs);
- M.Modal.init(modal_elems, modal_options);
+
+ // setupPickers(); // todo (adding an event), to be stored in messages
+ // // Setup modals
+ // const modal_elems = document.querySelectorAll('.modal');
+ // const modal_options = {
+ // onOpenStart: () => { $("#fab-new").hide() },
+ // onCloseEnd: () => { $("#fab-new").show() },
+ // dismissible: false
+ // };
+ // M.Modal.init(modal_elems, modal_options);
+
loadGradings(true);
// Setup refresh handler