From 1849c2e58b8228771ee033c26626b15597ddfada Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 3 Sep 2020 14:30:57 -0700 Subject: [PATCH] Add tag_autocomplete's on_pageload into its namespace. --- frontends/etiquette_flask/static/js/tag_autocomplete.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/static/js/tag_autocomplete.js b/frontends/etiquette_flask/static/js/tag_autocomplete.js index 11d1e8d..069f3a8 100644 --- a/frontends/etiquette_flask/static/js/tag_autocomplete.js +++ b/frontends/etiquette_flask/static/js/tag_autocomplete.js @@ -107,8 +107,9 @@ function update_tagset() common.get(url, tag_autocomplete.update_tagset_callback); } +tag_autocomplete.on_pageload = function on_pageload() { tag_autocomplete.update_tagset(); } -document.addEventListener("DOMContentLoaded", on_pageload); +document.addEventListener("DOMContentLoaded", tag_autocomplete.on_pageload);