From 6de0ad8e36e3155421bbdd3903522f7655f355e1 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sat, 10 Mar 2018 13:28:13 -0800 Subject: [PATCH] Oops, add this.open fallback to the open binder. --- frontends/etiquette_flask/static/js/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/editor.js b/frontends/etiquette_flask/static/js/editor.js index f8b3a12..b020dbf 100644 --- a/frontends/etiquette_flask/static/js/editor.js +++ b/frontends/etiquette_flask/static/js/editor.js @@ -193,7 +193,7 @@ function Editor(elements, on_open, on_save, on_cancel) this.open_button.classList.add("editor_button"); this.open_button.classList.add("editor_open_button"); this.open_button.classList.add("green_button"); - this.open_button.onclick = this.binder(on_open); + this.open_button.onclick = this.binder(on_open, this.open); toolbox.appendChild(this.open_button); this.save_button = document.createElement("button");