Bug Kalenderanzeige

This commit is contained in:
Holger Trampe 2021-09-20 11:04:38 +02:00
parent 6cdf0b8760
commit 0d67f72159
3 changed files with 8 additions and 6 deletions

View File

@ -315,7 +315,6 @@ document.getElementById("choosenyear").addEventListener("change", function(){
choosenyear = $('#choosenyear :selected').val(); choosenyear = $('#choosenyear :selected').val();
}) })
var selectedElements = []; var selectedElements = [];
var active_row = ""; var active_row = "";
var sameday = false; var sameday = false;
@ -689,7 +688,7 @@ $( function() {
/* /*
Functions for Kalendar Functions for Kalendar
*/ */
/*
function prevMonth(){ function prevMonth(){
$.ajax( $.ajax(
{ {
@ -751,7 +750,7 @@ function showNewAbsenceByUser(){
function goFastToMonth(month){ function goFastToMonth(month){
location.href = "/tm/abs/" + month +"/" + choosenyear location.href = "/tm/abs/" + month +"/" + choosenyear
} }
*/
</script> </script>

View File

@ -572,8 +572,7 @@ $('#absencetabs a').on('click', function (e) {
} }
localStorage.setItem('activeTabAbsence', lastview_name); localStorage.setItem('activeTabAbsence', lastview_name);
}); });
/*
function prevMonth(){ function prevMonth(){
$.ajax( $.ajax(
{ {
@ -589,6 +588,7 @@ $('#absencetabs a').on('click', function (e) {
request.setRequestHeader("X-Requested-With", "XMLHttpRequest"); request.setRequestHeader("X-Requested-With", "XMLHttpRequest");
}, },
success : function(data){ success : function(data){
console.log(data);
$("#overlay").fadeOut(); $("#overlay").fadeOut();
$("#rendered_table").html(data); $("#rendered_table").html(data);
} }
@ -615,7 +615,7 @@ function nextMonth(){
} }
}); });
} }
*/
/* /*
Functions for Kalender Functions for Kalender

View File

@ -794,6 +794,9 @@ def TimeAjax(request):
nextmonth = "" nextmonth = ""
activemonth = int(request.GET["activemonth"]) activemonth = int(request.GET["activemonth"])
activeyear = int(request.GET["activeyear"]) activeyear = int(request.GET["activeyear"])
print(activemonth)
print(activeyear)
#MONTH #MONTH
if(not activemonth or activemonth > 12 or activemonth < 1): if(not activemonth or activemonth > 12 or activemonth < 1):