mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
parent
d0c4a6bdf1
commit
da48941d63
4 changed files with 23 additions and 2 deletions
|
|
@ -160,6 +160,7 @@ function StorageUI(front, target, panelWin, toolbox) {
|
|||
this._tablePopup = this._panelDoc.getElementById("storage-table-popup");
|
||||
this._tablePopup.addEventListener("popupshowing", this.onTablePopupShowing);
|
||||
|
||||
this.onRefreshTable = this.onRefreshTable.bind(this);
|
||||
this.onAddItem = this.onAddItem.bind(this);
|
||||
this.onRemoveItem = this.onRemoveItem.bind(this);
|
||||
this.onRemoveAllFrom = this.onRemoveAllFrom.bind(this);
|
||||
|
|
@ -167,6 +168,9 @@ function StorageUI(front, target, panelWin, toolbox) {
|
|||
this.onRemoveAllSessionCookies = this.onRemoveAllSessionCookies.bind(this);
|
||||
this.onRemoveTreeItem = this.onRemoveTreeItem.bind(this);
|
||||
|
||||
this._refreshButton = this._panelDoc.getElementById("refresh-button");
|
||||
this._refreshButton.addEventListener("command", this.onRefreshTable);
|
||||
|
||||
this._addButton = this._panelDoc.getElementById("add-button");
|
||||
this._addButton.addEventListener("command", this.onAddItem);
|
||||
|
||||
|
|
@ -229,6 +233,7 @@ StorageUI.prototype = {
|
|||
this.searchBox = null;
|
||||
|
||||
this._treePopup.removeEventListener("popupshowing", this.onTreePopupShowing);
|
||||
this._refreshButton.removeEventListener("command", this.onRefreshTable);
|
||||
this._addButton.removeEventListener("command", this.onAddItem);
|
||||
this._tablePopupAddItem.removeEventListener("command", this.onAddItem);
|
||||
this._treePopupDeleteAll.removeEventListener("command", this.onRemoveAll);
|
||||
|
|
@ -1120,6 +1125,13 @@ StorageUI.prototype = {
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Handles refreshing the selected storage
|
||||
*/
|
||||
onRefreshTable: function (event) {
|
||||
this.onHostSelect(event, this.tree.selectedItem);
|
||||
},
|
||||
|
||||
/**
|
||||
* Handles adding an item from the storage
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue