diff options
Diffstat (limited to 'phpfspot.js')
-rw-r--r-- | phpfspot.js | 14 |
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 = ''; } |