From 2b68f1944dc095b4252a66b3a0dd64b5650d9d7a Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sat, 14 Jul 2007 13:56:48 +0000 Subject: [PATCH] remove a unnecessary AJAX call git-svn-id: file:///var/lib/svn/phpfspot/trunk@204 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- phpfspot.js | 15 ++------------- 1 file 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') { -- 2.25.1