summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-28 07:10:25 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-28 07:10:25 +0000
commitfc802d09f196e338f7485e38057ec84df5c81bf2 (patch)
tree254911c7864291849b1d200e30f01ed7bd599937 /phpfspot.js
parentd017dda4269c5122cd522218357a11fcb4880a5d (diff)
issue69, fixed calendar matrix always starting with the current time
git-svn-id: file:///var/lib/svn/phpfspot/trunk@260 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js4
1 files changed, 3 insertions, 1 deletions
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 {