| Index: ui/file_manager/file_manager/foreground/js/ui/search_box.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/ui/search_box.js b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
|
| index eb3b6c73de7c64e641b4504602348ef837bf2842..3ed4f992322c20554a7ffce9395d7b911fc775d5 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/ui/search_box.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
|
| @@ -45,12 +45,6 @@ function SearchBox(element, searchButton, noResultMessage) {
|
| this.inputElement = /** @type {!HTMLInputElement} */ (
|
| element.querySelector('input'));
|
|
|
| - /**
|
| - * Clear button of the search box.
|
| - * @type {Element}
|
| - */
|
| - this.clearButton = element.querySelector('.clear');
|
| -
|
| // Register events.
|
| this.inputElement.addEventListener('input', this.onInput_.bind(this));
|
| this.inputElement.addEventListener('keydown', this.onKeyDown_.bind(this));
|
| @@ -66,9 +60,6 @@ function SearchBox(element, searchButton, noResultMessage) {
|
| this.searchButton.addEventListener(
|
| 'click',
|
| this.onSearchButtonClick_.bind(this));
|
| - this.clearButton.addEventListener(
|
| - 'click',
|
| - this.onClearButtonClick_.bind(this));
|
| var dispatchItemSelect =
|
| cr.dispatchSimpleEvent.bind(cr, this, SearchBox.EventType.ITEM_SELECT);
|
| this.autocompleteList.handleEnterKeydown = dispatchItemSelect;
|
| @@ -267,11 +258,3 @@ SearchBox.prototype.updateStyles_ = function() {
|
| SearchBox.prototype.onSearchButtonClick_ = function() {
|
| this.inputElement.focus();
|
| };
|
| -
|
| -/**
|
| - * @private
|
| - */
|
| -SearchBox.prototype.onClearButtonClick_ = function() {
|
| - this.inputElement.value = '';
|
| - this.onInput_();
|
| -};
|
|
|