summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/phpfspot.js b/phpfspot.js
index 7049cd6..4849295 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -1,13 +1,13 @@
function showImage(id)
{
- content = document.getElementById("content");
- content.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=showphoto&id=' + id));
+ var image_div = document.getElementById("content");
+ image_div.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=showphoto&id=' + id));
}
function showCredits()
{
- content = document.getElementById("content");
- content.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=showcredits'));
+ var credits = document.getElementById("content");
+ credits.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=showcredits'));
}
function Tags(mode, id)
@@ -37,15 +37,15 @@ function Tags(mode, id)
function refreshAvailableTags()
{
// update available tags
- content = document.getElementById("available_tags");
- content.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=show_available_tags'));
+ var avail_tags = document.getElementById('available_tags');
+ avail_tags.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=show_available_tags'));
}
function refreshSelectedTags()
{
// update selected tags
- content = document.getElementById("selected_tags");
- content.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=show_selected_tags'));
+ var selected_tags = document.getElementById("selected_tags");
+ selected_tags.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=show_selected_tags'));
}
function showPhotoIndex()