From e3881c74095d202fe4a8679f5cdb8adbfa091183 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 22 Aug 2022 23:49:20 -0500 Subject: [PATCH] Fix chat buttons --- resources/widgets.scss | 6 ++++++ templates/chat/chat.html | 9 ++++++--- templates/chat/user_online_status.html | 2 +- templates/organization/home-js.html | 7 ------- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/resources/widgets.scss b/resources/widgets.scss index 41ef66d..6205be1 100644 --- a/resources/widgets.scss +++ b/resources/widgets.scss @@ -71,6 +71,12 @@ background: gray; } + &.btn-hovergray { + &:hover { + background: lightgray; + } + } + &.btn-green { background: green; diff --git a/templates/chat/chat.html b/templates/chat/chat.html index 1f155a6..c8be60a 100644 --- a/templates/chat/chat.html +++ b/templates/chat/chat.html @@ -475,7 +475,10 @@ let META_HEADER = [ $('.chat-right-panel').show(); }); - $('#refresh-button').on('click', refresh_status) + $('#refresh-button').on('click', function(e) { + e.preventDefault(); + refresh_status(); + }); setInterval(refresh_status, 2 * 60 * 1000); @@ -585,11 +588,11 @@ let META_HEADER = [