X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=phpfspot.git;a=blobdiff_plain;f=phpfspot.js;h=b2aebd7e9d74427a4fe05280d99a6d9ec45a92ea;hp=4951fe1fa1f2dbf8d0b97daafed6498b4e9e45f3;hb=c48fe9f8904f3e82b484bba7b62c79a58a9dc5b4;hpb=b33eaa082ac21a6f657058814b491326c24f9533 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 = ''; }