From f80bd441b7b06563452dbd1cf92f6e7871d8bccb Mon Sep 17 00:00:00 2001 From: Hamish Friedlander Date: Thu, 14 May 2009 05:59:07 +0000 Subject: [PATCH] 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 --- javascript/CMSMain_left.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/CMSMain_left.js b/javascript/CMSMain_left.js index 4fb809c8..f652c74d 100755 --- a/javascript/CMSMain_left.js +++ b/javascript/CMSMain_left.js @@ -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){