Fix chat buttons

This commit is contained in:
cuom1999 2022-08-22 23:49:20 -05:00
parent 69e3303f61
commit e3881c7409
4 changed files with 13 additions and 11 deletions

View file

@ -71,6 +71,12 @@
background: gray; background: gray;
} }
&.btn-hovergray {
&:hover {
background: lightgray;
}
}
&.btn-green { &.btn-green {
background: green; background: green;

View file

@ -475,7 +475,10 @@ let META_HEADER = [
$('.chat-right-panel').show(); $('.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); setInterval(refresh_status, 2 * 60 * 1000);
@ -585,11 +588,11 @@ let META_HEADER = [
<div id="chat-online" class="chat-right-panel sidebox"> <div id="chat-online" class="chat-right-panel sidebox">
<h3 style="display:flex"> <h3 style="display:flex">
{{_('Online Users')}} {{_('Online Users')}}
<button id="refresh-button" title="{{_('Refresh')}}"> <a href="#" id="refresh-button" title="{{_('Refresh')}}">
<img src="/reload.png" <img src="/reload.png"
width="100%" width="100%"
> >
</button> </a>
</h3> </h3>
<div id="chat-online-content"> <div id="chat-online-content">
<div id="search-container"> <div id="search-container">

View file

@ -21,7 +21,7 @@
{% if other_user %} {% if other_user %}
<span style="margin-right: 0.3em" id="setting"> <span style="margin-right: 0.3em" id="setting">
<button class="control-button" style="height:100%;" id="setting-button"> <button class="control-button small" style="height:100%;" id="setting-button">
<i class="fa fa-ellipsis-h"></i> <i class="fa fa-ellipsis-h"></i>
</button> </button>
<div id="setting-content"> <div id="setting-content">

View file

@ -14,12 +14,5 @@
$(this).parent().submit(); $(this).parent().submit();
} }
}); });
$(document).ready(function () {
$('.control-button').click(function(e) {
e.preventDefault();
$('#control-panel').toggle("fast");
})
});
}); });
</script> </script>