diff options
author | sijanec <sijanecantonluka@gmail.com> | 2020-06-04 14:42:13 +0200 |
---|---|---|
committer | sijanec <sijanecantonluka@gmail.com> | 2020-06-04 14:42:13 +0200 |
commit | 4501c407bab73552c846df236a6c361a2e1b88a8 (patch) | |
tree | ce9d28ed89cb0c31897b0cfb71515bc44eecd51c /dist/js/gradings.js | |
parent | Merge branch 'current-release' into dev (diff) | |
download | beziapp-4501c407bab73552c846df236a6c361a2e1b88a8.tar beziapp-4501c407bab73552c846df236a6c361a2e1b88a8.tar.gz beziapp-4501c407bab73552c846df236a6c361a2e1b88a8.tar.bz2 beziapp-4501c407bab73552c846df236a6c361a2e1b88a8.tar.lz beziapp-4501c407bab73552c846df236a6c361a2e1b88a8.tar.xz beziapp-4501c407bab73552c846df236a6c361a2e1b88a8.tar.zst beziapp-4501c407bab73552c846df236a6c361a2e1b88a8.zip |
Diffstat (limited to 'dist/js/gradings.js')
-rw-r--r-- | dist/js/gradings.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dist/js/gradings.js b/dist/js/gradings.js index de5f21b..713ea20 100644 --- a/dist/js/gradings.js +++ b/dist/js/gradings.js @@ -14,5 +14,4 @@ async function validateInputs(){if($("#input-grading-name").val()!=null&&$("#inp function gradingClickHandler(eventClickInfo){let grading_id=parseInt(eventClickInfo.event.id);let grading_subject=gradings[grading_id]["subject"];let grading_date_obj=gradings[grading_id]["date"];let grading_date=dateString.longFormatted(grading_date_obj);let grading_description=gradings[grading_id]["description"];$("#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();} function setupPickers(){var date_object=new Date();let elems=document.querySelectorAll('#datepicker-add');let options={autoClose:true,format:"dd.mm.yyyy",defaultDate:date_object,setDefaultDate:true,firstDay:1} instances=M.Datepicker.init(elems,options);} - -document.addEventListener("DOMContentLoaded",()=>{checkLogin();var calendarEl=document.getElementById("calendar");calendar_obj=new FullCalendar.Calendar(calendarEl,{firstDay:1,plugins:["dayGrid"],defaultDate:getDateString(),navLinks:false,editable:false,events:[],eventClick:gradingClickHandler,height:"parent"});calendar_obj.render();loadGradings(true);$("#refresh-icon").click(()=>{loadGradings(true);});const menus=document.querySelectorAll(".side-menu");M.Sidenav.init(menus,{edge:"right",draggable:true});const modals=document.querySelectorAll('.side-modal');M.Sidenav.init(modals,{edge:'left',draggable:false});}); +document.addEventListener("DOMContentLoaded",()=>{checkLogin();var calendarEl=document.getElementById("calendar");calendar_obj=new FullCalendar.Calendar(calendarEl,{firstDay:1,plugins:["dayGrid"],defaultDate:getDateString(),navLinks:false,editable:false,events:[],eventClick:gradingClickHandler,height:"parent"});calendar_obj.render();loadGradings(true);$("#refresh-icon").click(()=>{loadGradings(true);});const menus=document.querySelectorAll(".side-menu");M.Sidenav.init(menus,{edge:"right",draggable:true});const modals=document.querySelectorAll('.side-modal');M.Sidenav.init(modals,{edge:'left',draggable:false});});
\ No newline at end of file |