From: Andreas Unterkircher Date: Sat, 14 Jul 2007 13:56:48 +0000 (+0000) Subject: remove a unnecessary AJAX call X-Git-Tag: phpfspot-1.2~131 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b68f1944dc095b4252a66b3a0dd64b5650d9d7a;p=phpfspot.git remove a unnecessary AJAX call git-svn-id: file:///var/lib/svn/phpfspot/trunk@204 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- 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') {