BUGFIX: Fix issue with 'clear' button on CMS SiteTree search

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@76852 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hamish Friedlander 2009-05-14 05:59:07 +00:00 committed by Sam Minnee
parent 9e177f4c10
commit f80bd441b7

View File

@ -207,7 +207,7 @@ SiteTreeFilterForm.prototype = {
}
else {
Form.getElements(this).each(function(el){
if (el.type == 'text') $(el).clear();
if (el.type == 'text') el.value = '';
else if (el.type == 'select-one') el.value = 'All';
});
document.getElementsBySelector('.SearchCriteriaContainer', this).each(function(el){