issue53, avoid makeing to many ... in the page selector
[phpfspot.git] / phpfspot.js
index d54f8b5403519a997419d21f2fab0a236d9dbd30..3813d09d2a2e68f3fad544a9b1a4f28f0c87e838 100644 (file)
@@ -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') {