Changed setValue to clear

This commit is contained in:
jos 2015-12-25 14:01:01 +01:00
parent de314b897e
commit fb4ec75d56
2 changed files with 4 additions and 5 deletions

View File

@ -285,11 +285,10 @@ SearchBox.prototype._onKeyUp = function (event) {
}; };
/** /**
* Set search text. Will apply a new search * Clear the search results
* @param {string} value
*/ */
SearchBox.prototype.setValue = function (value) { SearchBox.prototype.clear = function () {
this.dom.search.value = value; this.dom.search.value = '';
this._onSearch(); this._onSearch();
}; };

View File

@ -128,7 +128,7 @@ treemode.set = function (json, name) {
} }
// clear search // clear search
this.searchBox.setValue(''); this.searchBox.clear();
}; };
/** /**