From 7992e5698f7f3f73247b1105acca46ef3e8475d8 Mon Sep 17 00:00:00 2001 From: Cody Swendrowski Date: Tue, 14 Jul 2020 20:55:47 -0500 Subject: [PATCH] Scroll to bottom --- module.json | 2 +- tabbed-chatlog.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module.json b/module.json index 7bfe7b9..5594d9e 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "tabbed-chatlog", "title": "Tabbed Chatlog", "description": "Splits the Chatlog into In Character (per scene), Rolls (per scene), and Out of Character (global).", - "version": "1.1.1", + "version": "1.1.2", "minimumCoreVersion": "0.6.2", "compatibleCoreVersion": "0.6.0", "author": "Cody Swendrowski ", diff --git a/tabbed-chatlog.js b/tabbed-chatlog.js index b997dec..38953cb 100644 --- a/tabbed-chatlog.js +++ b/tabbed-chatlog.js @@ -61,7 +61,7 @@ Hooks.on("renderChatLog", async function(chatLog, html, user) { $(".type1").show(); $(".type2").hide(); $(".type3").hide(); - $(".type3").removeClass("hardHide"); + $(".type4").removeClass("hardHide"); $(".type4").show(); $(".type5").hide(); @@ -70,6 +70,8 @@ Hooks.on("renderChatLog", async function(chatLog, html, user) { else { console.log("Unknown tab " + tab + "!"); } + + $("#chat-log").scrollTop(9999999); } }); console.log(html[0]);