show additional infos in the image preview bubble
[phpfspot.git] / phpfspot.js
index ce49f350eeac7380fc43451c8fe1c3b9c239d177..23a713055ed7ad1713aa475b92f0c508f3af8093 100644 (file)
@@ -39,6 +39,13 @@ function refreshSelectedTags()
 
 function showPhotoIndex()
 {
-   content = document.getElementById("content");
-   content.innerHTML = HTML_AJAX.grab('rpc.php?action=show_photo_index');
+   HTML_AJAX.replace(document.getElementById("content"), 'rpc.php?action=show_photo_index');
+
+//   content = document.getElementById("content");
+//   content.innerHTML = HTML_AJAX.grab('rpc.php?action=show_photo_index');
+}
+
+function showBubbleDetails(object, id, direction)
+{
+   HTML_AJAX.replace(object, 'rpc.php?action=showbubbledetails&id=' + id + '&direction=" + direction');
 }