Bug Kalenderanzeige
This commit is contained in:
parent
6cdf0b8760
commit
0d67f72159
|
|
@ -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>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -795,6 +795,9 @@ def TimeAjax(request):
|
||||||
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):
|
||||||
activemonth = int(activemonth)
|
activemonth = int(activemonth)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue