From e44ab58aa8d5053050414c94570eb5a783c4f3db Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Thu, 10 Aug 2017 22:01:23 +0000 Subject: [PATCH] After changing the username, it should just refetch --- webapp/titanembeds/static/js/embed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index 34d0854..9816eb1 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -825,7 +825,9 @@ var usr = change_unauthenticated_username($(this).val()); usr.done(function(data) { Materialize.toast('Username changed successfully!', 10000); - initialize_embed(); + priority_query_guild = true; + clearTimeout(fetchtimeout); + run_fetch_routine(); }); usr.fail(function(data) { if (data.status == 429) {