summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-01-01 12:55:00 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-01-01 12:55:00 +0100
commit2c33b25c82ee1b2a5eaf4eb4f8839cc47bf8425e (patch)
treef5ffd18bf4178aba0cca6e26dd67aaf69532f598 /phpfspot.js
parent5bc350814a9426a89e8ab06728badad9430d4015 (diff)
added some comments
display "no tags selected" when nothing is selected. otherwise it looks like a bit kind of error when empty
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/phpfspot.js b/phpfspot.js
index b196a68..26e5090 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -160,10 +160,12 @@ function AskServerWhatToDo()
return HTML_AJAX.grab(encodeURI('rpc.php?action=what_to_do'));
}
-function init_phpfspot()
+function init_phpfspot(mode)
{
+ /* always load list of available tags */
refreshAvailableTags();
+ /* ask the server what we are currently displaying */
whattodo = AskServerWhatToDo();
if(whattodo == 'showpi' || whattodo == 'showpi_date') {
@@ -179,7 +181,7 @@ function init_phpfspot()
refreshSelectedTags();
}
}
-}
+} // init_phpfspot()
function setBackGrdColor(item, color)
{