summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js27
1 files changed, 21 insertions, 6 deletions
diff --git a/phpfspot.js b/phpfspot.js
index 21a027a..e24d0aa 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -8,6 +8,17 @@ function showImage(id, scrollup)
}
}
+function moveToThumb(thumb_id)
+{
+ if(thumb_id == undefined)
+ return;
+
+ if(thumbimg = document.getElementById('thumbimg' + thumb_id)) {
+ window.scrollTo(0, thumbimg.offsetTop-100);
+ }
+
+} // moveToThumb()
+
function showCredits()
{
var credits = document.getElementById("content");
@@ -62,13 +73,17 @@ function refreshSelectedTags()
selected_tags.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=show_selected_tags'));
}
-function showPhotoIndex(begin_with)
+function showPhotoIndex(begin_with, last_photo)
{
- if(begin_with == undefined)
- HTML_AJAX.replace(document.getElementById("content"), encodeURI('rpc.php?action=show_photo_index'));
- else
- HTML_AJAX.replace(document.getElementById("content"), encodeURI('rpc.php?action=show_photo_index&begin_with=' + begin_with));
-}
+ var url = "rpc.php?action=show_photo_index";
+ if(begin_with != undefined)
+ url = url + '&begin_with=' + begin_with;
+ if(last_photo != undefined)
+ url = url + '&last_photo=' + last_photo;
+
+ HTML_AJAX.replace(document.getElementById("content"), encodeURI(url));
+
+} // showPhotoIndex()
// if photo index is currently shown, refresh it
function refreshPhotoIndex()