From: Andreas Unterkircher Date: Sat, 14 Jul 2007 12:27:40 +0000 (+0000) Subject: issue27, remove any value from tag-search-input-valid when date search is invoked... X-Git-Tag: phpfspot-1.2~136 X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd253c45192457c2e029fb957d7778eedf675f0d;p=phpfspot.git issue27, remove any value from tag-search-input-valid when date search is invoked to avoid user-confusion git-svn-id: file:///var/lib/svn/phpfspot/trunk@199 fa6a889d-dae6-447d-9e79-4ba9a3039384 --- diff --git a/phpfspot.js b/phpfspot.js index 40d6761..f101e60 100644 --- a/phpfspot.js +++ b/phpfspot.js @@ -24,7 +24,7 @@ function Tags(mode, id) setCheckedValue(id, id.value); HTML_AJAX.grab(encodeURI('rpc.php?action=tagcondition&mode=' + id.value)); } - + refreshAvailableTags(); refreshSelectedTags(); refreshPhotoIndex(); @@ -49,7 +49,7 @@ function refreshSelectedTags() // if no tags are currently selected, return false from here if(selected_tags.innerHTML == "") return false; - + return true; } @@ -117,7 +117,8 @@ function startDateSearch() to = to_year +"-"+ to_month +"-"+ to_day; HTML_AJAX.grab(encodeURI('rpc.php?action=date_search&from='+ from +'&to='+ to)); - + + clearSearch(); refreshAvailableTags(); refreshSelectedTags(); refreshPhotoIndex();