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();
|
||||
})
|
||||
|
||||
|
||||
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>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue