issue27, remove any value from tag-search-input-valid when date search is invoked...
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 14 Jul 2007 12:27:40 +0000 (12:27 +0000)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 14 Jul 2007 12:27:40 +0000 (12:27 +0000)
git-svn-id: file:///var/lib/svn/phpfspot/trunk@199 fa6a889d-dae6-447d-9e79-4ba9a3039384

phpfspot.js

index 40d676187f0c409f0a9d65940cf44dbea4a23fb8..f101e6080900209319d927a4e96ceca2f5a5ba0e 100644 (file)
@@ -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();