diff options
author | Andreas Unterkircher <unki@netshadow.at> | 2007-07-14 13:47:10 +0000 |
---|---|---|
committer | Andreas Unterkircher <unki@netshadow.at> | 2007-07-14 13:47:10 +0000 |
commit | 3d567f23a4e45ed8b082fbcd160bd0463b643529 (patch) | |
tree | c87290d022263f765878a502c0ea61e1584ad25e /phpfspot.js | |
parent | 81427447f075b3b90a46ce715a5ce4f841fe27a0 (diff) |
issue13, all external links have been tested again, single photo, with tag- or date-search are now possible
git-svn-id: file:///var/lib/svn/phpfspot/trunk@202 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.js')
-rw-r--r-- | phpfspot.js | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/phpfspot.js b/phpfspot.js index bd2baf3..d54f8b5 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -137,19 +137,34 @@ function clearSearch() document.getElementsByName('searchfor')[0].value = ''; } +function AskServerWhatToDo() +{ + return HTML_AJAX.grab(encodeURI('rpc.php?action=what_to_do')); +} + function init_phpfspot() { refreshAvailableTags(); - if(photo = getPhotoToShow()) { - showImage(photo) - refreshSelectedTags(); + whattodo = AskServerWhatToDo(); + + if(whattodo == 'showpi') { + showPhotoIndex(); } - else { + if(whattodo == 'showpi_tags') { if(refreshSelectedTags()) { showPhotoIndex(); } } + if(whattodo == 'showpi_date') { + showPhotoIndex(); + } + if(whattodo == 'show_photo') { + if(photo = getPhotoToShow()) { + showImage(photo) + refreshSelectedTags(); + } + } } function setBackGrdColor(item, color) |