Bug 1253072 - Small bug fixes to the Storage Inspector functionality. r=miker

MozReview-Commit-ID: 7s1Ua2ecy0I
This commit is contained in:
Tim Nguyen 2016-03-02 14:52:00 -05:00
parent e150ac87f6
commit 74c6f50e80
3 changed files with 3 additions and 2 deletions

View File

@ -452,11 +452,11 @@ TableWidget.prototype = {
if (this.filteredValue == value) {
return;
}
this.filteredValue = value;
if (!value) {
this.emit(EVENTS.TABLE_FILTERED, []);
return;
}
this.filteredValue = value;
// Shouldn't be case-sensitive
value = value.toLowerCase();

View File

@ -30,6 +30,7 @@
<textbox id="storage-searchbox"
class="devtools-searchinput"
type="search"
timeout="200"
placeholder="&searchBox.placeholder;"/>
</hbox>
<vbox id="storage-table" class="theme-sidebar" flex="1"/>

View File

@ -81,7 +81,7 @@ var StorageUI = this.StorageUI = function StorageUI(front, target, panelWin) {
this.searchBox = this._panelDoc.getElementById("storage-searchbox");
this.filterItems = this.filterItems.bind(this);
this.searchBox.addEventListener("input", this.filterItems);
this.searchBox.addEventListener("command", this.filterItems);
this.front.listStores().then(storageTypes => {
this.populateStorageTree(storageTypes);