Changed setValue to clear
This commit is contained in:
parent
de314b897e
commit
fb4ec75d56
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ treemode.set = function (json, name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear search
|
// clear search
|
||||||
this.searchBox.setValue('');
|
this.searchBox.clear();
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue