Replaced hexToByteArray with fromHex and byteArrayToHex with toHex. Switched displayFilesAsHTML operation to use template strings and introduced markup formatting method.

This commit is contained in:
n1474335 2017-07-07 13:23:58 +00:00
parent 2400de337b
commit c460c2bf6b
5 changed files with 62 additions and 99 deletions

View file

@ -172,6 +172,7 @@ OutputWaiter.prototype.undoSwitchClick = function() {
* Moves a files data for items created via Utils.displayFilesAsHTML to the input.
*/
OutputWaiter.prototype.fileSwitch = function(e) {
e.preventDefault();
this.switchOrigData = this.manager.input.get();
this.app.setInput(e.target.getAttribute("fileValue"));
document.getElementById("undo-switch").disabled = false;