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();
})
var selectedElements = [];
var active_row = "";
var sameday = false;
@ -689,7 +688,7 @@ $( function() {
/*
Functions for Kalendar
*/
/*
function prevMonth(){
$.ajax(
{
@ -751,7 +750,7 @@ function showNewAbsenceByUser(){
function goFastToMonth(month){
location.href = "/tm/abs/" + month +"/" + choosenyear
}
*/
</script>

View File

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

View File

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