summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpfspot.js15
1 files changed, 2 insertions, 13 deletions
diff --git a/phpfspot.js b/phpfspot.js
index d54f8b5..3813d09 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -45,13 +45,6 @@ function refreshSelectedTags()
var selected_tags = document.getElementById("selected_tags");
selected_tags.innerHTML = "Loading...";
selected_tags.innerHTML = HTML_AJAX.grab(encodeURI('rpc.php?action=show_selected_tags'));
-
- // if no tags are currently selected, return false from here
- if(selected_tags.innerHTML == "")
- return false;
-
- return true;
-
}
function showPhotoIndex(begin_with)
@@ -148,15 +141,11 @@ function init_phpfspot()
whattodo = AskServerWhatToDo();
- if(whattodo == 'showpi') {
+ if(whattodo == 'showpi' || whattodo == 'showpi_date') {
showPhotoIndex();
}
if(whattodo == 'showpi_tags') {
- if(refreshSelectedTags()) {
- showPhotoIndex();
- }
- }
- if(whattodo == 'showpi_date') {
+ refreshSelectedTags();
showPhotoIndex();
}
if(whattodo == 'show_photo') {