summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-14 13:56:48 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-14 13:56:48 +0000
commit2b68f1944dc095b4252a66b3a0dd64b5650d9d7a (patch)
tree33d3fb34e2ef384be3b980117382e209177c96a3 /phpfspot.js
parentab99bf1b3aa609c14a81ad768601605afff54db2 (diff)
remove a unnecessary AJAX call
git-svn-id: file:///var/lib/svn/phpfspot/trunk@204 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.js')
-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') {