From 20a56a4fcc370cc01bb2bab7708d45cb42d4b860 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Mon, 27 May 2019 22:16:35 -0400 Subject: [PATCH] web: small improvements --- bot/bot.go | 4 ++-- plugins/cli/index.go | 2 ++ plugins/fact/webTemplates.go | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bot/bot.go b/bot/bot.go index e66eda7..8674a34 100644 --- a/bot/bot.go +++ b/bot/bot.go @@ -138,8 +138,8 @@ var rootIndex = ` Factoids - - + + {{if .EndPoints}}
diff --git a/plugins/cli/index.go b/plugins/cli/index.go index 09b4364..04b0be2 100644 --- a/plugins/cli/index.go +++ b/plugins/cli/index.go @@ -117,6 +117,8 @@ var indexHTML = ` }, send(evt) { evt.preventDefault(); + evt.stopPropagation() + this.input = ""; if (!this.authenticated) { console.log("User is a bot."); this.err = "User appears to be a bot."; diff --git a/plugins/fact/webTemplates.go b/plugins/fact/webTemplates.go index 0c0c7b7..a2b2d25 100644 --- a/plugins/fact/webTemplates.go +++ b/plugins/fact/webTemplates.go @@ -12,7 +12,7 @@ var factoidIndex = ` Factoids - + @@ -24,6 +24,7 @@ var factoidIndex = ` +
@@ -107,6 +108,7 @@ var factoidIndex = ` }); }); + `