X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.js;h=6671eb2cb1914a49a4da406cf0bd446055358038;hp=17cf1095e0b45f2f239918ae902e704013ccca9e;hb=8de7a22ceac0fab9eb984854758608d7aeb079d3;hpb=983265c10193e5ba5bb7193c454524efb34ea1ee diff --git a/phpfspot.js b/phpfspot.js index 17cf109..6671eb2 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -209,6 +209,8 @@ function getPhotoToShow() function showCalendar(date_box, click_obj) { var calendar = document.getElementById('calendar'); + var year = document.getElementById(date_box+'year').value; + var month = document.getElementById(date_box+'month').value; if(date_box == 'from') { var xpos = document.getElementById('frompic').offsetLeft; var ypos = document.getElementById('frompic').offsetTop; @@ -225,7 +227,7 @@ function showCalendar(date_box, click_obj) if(calendar.style.visibility == "" || calendar.style.visibility == 'hidden') { calendar.style.visibility = 'visible'; calendar.innerHTML = "Loading..."; - calendar.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=get_calendar_matrix')); + calendar.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=get_calendar_matrix&year=' + year + '&month=' + month)); calendar_shown = 1; } else {