From 7e310a8de7241d6dd9aa1b113008e469ffa8bac7 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 7 Jul 2017 13:26:51 +0000 Subject: [PATCH] Moved file switch listener to correct block --- src/web/Manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/Manager.js b/src/web/Manager.js index dddeead7..8166f606 100755 --- a/src/web/Manager.js +++ b/src/web/Manager.js @@ -145,6 +145,7 @@ Manager.prototype.initialiseEventListeners = function() { document.getElementById("output-html").addEventListener("mousemove", this.highlighter.outputHtmlMousemove.bind(this.highlighter)); this.addMultiEventListener("#output-text", "mousedown dblclick select", this.highlighter.outputMousedown, this.highlighter); this.addMultiEventListener("#output-html", "mousedown dblclick select", this.highlighter.outputHtmlMousedown, this.highlighter); + this.addDynamicListener(".file-switch", "click", this.output.fileSwitch, this.output); // Options document.getElementById("options").addEventListener("click", this.options.optionsClick.bind(this.options)); @@ -158,7 +159,6 @@ 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); };