mirror of
https://github.com/gchq/CyberChef
synced 2025-12-22 11:13:38 +00:00
Merge branch 'unzipmod' of https://github.com/bwhitn/CyberChef into bwhitn-unzipmod
This commit is contained in:
@@ -158,6 +158,7 @@ Manager.prototype.initialiseEventListeners = function() {
|
||||
|
||||
// Misc
|
||||
document.getElementById("alert-close").addEventListener("click", this.app.alertCloseClick.bind(this.app));
|
||||
this.addDynamicListener(".file-switch", "click", this.output.fileSwitch, this.output);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -167,6 +167,16 @@ OutputWaiter.prototype.undoSwitchClick = function() {
|
||||
document.getElementById("undo-switch").disabled = true;
|
||||
};
|
||||
|
||||
/**
|
||||
* Handler for file switch click events.
|
||||
* Moves a files data for items created via Utils.displayFilesAsHTML to the input.
|
||||
*/
|
||||
OutputWaiter.prototype.fileSwitch = function(e) {
|
||||
this.switchOrigData = this.manager.input.get();
|
||||
this.app.setInput(e.target.getAttribute("fileValue"));
|
||||
document.getElementById("undo-switch").disabled = false;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Handler for maximise output click events.
|
||||
|
||||
Reference in New Issue
Block a user