summaryrefslogtreecommitdiffstats
path: root/phpfspot.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-06-11 19:36:03 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-06-11 19:36:03 +0000
commitc48fe9f8904f3e82b484bba7b62c79a58a9dc5b4 (patch)
tree7fc363f75418eede0abb494f48f36e695d39499a /phpfspot.js
parentb33eaa082ac21a6f657058814b491326c24f9533 (diff)
first tag search functionality
git-svn-id: file:///var/lib/svn/phpfspot/trunk@79 fa6a889d-dae6-447d-9e79-4ba9a3039384
Diffstat (limited to 'phpfspot.js')
-rw-r--r--phpfspot.js14
1 files changed, 12 insertions, 2 deletions
diff --git a/phpfspot.js b/phpfspot.js
index 4951fe1..b2aebd7 100644
--- a/phpfspot.js
+++ b/phpfspot.js
@@ -92,8 +92,18 @@ function setCheckedValue(condition, value) {
}
}
-function startsearch()
+function startSearch(searchfor)
{
- searchfor = document.getElementsByName('searchfor')[0].value;
HTML_AJAX.grab(encodeURI('rpc.php?action=search&for=' + searchfor));
+
+/ Tags('reset', 0);
+
+ refreshAvailableTags();
+ refreshSelectedTags();
+ showPhotoIndex();
+}
+
+function clearSearch()
+{
+ document.getElementsByName('searchfor')[0].value = '';
}