aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/chat.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl/chat.tpl')
-rw-r--r--view/tpl/chat.tpl24
1 files changed, 12 insertions, 12 deletions
diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl
index cb88be7e8..1020399c7 100644
--- a/view/tpl/chat.tpl
+++ b/view/tpl/chat.tpl
@@ -37,11 +37,11 @@
<a class="dropdown-item" href="{{$baseurl}}/chatsvc?f=&room_id={{$room_id}}&status=away"><i class="bi bi-circle-fill away"></i>&nbsp;{{$away}}</a>
<a class="dropdown-item" href="{{$baseurl}}/chat/{{$nickname}}/{{$room_id}}/leave"><i class="bi bi-circle-fill leave"></i>&nbsp;{{$leave}}</a>
<div class="dropdown-divider"></div>
- <a id="toggle-notifications" class="dropdown-item" href="" onclick="toggleChatNotifications(); return false;"><i id="toggle-notifications-icon" class="bi fa-bell-slash-o"></i>&nbsp;Toggle notifications</a>
- <a id="toggle-notifications-audio" class="dropdown-item disabled" href="" onclick="toggleChatNotificationAudio(); return false;"><i id="toggle-notifications-audio-icon" class="bi fa-volume-off"></i>&nbsp;Toggle sound</a>
+ <a id="toggle-notifications" class="dropdown-item" href="" onclick="toggleChatNotifications(); return false;"><i id="toggle-notifications-icon" class="bi bi-bell-slash-fill"></i>&nbsp;Toggle notifications</a>
+ <a id="toggle-notifications-audio" class="dropdown-item disabled" href="" onclick="toggleChatNotificationAudio(); return false;"><i id="toggle-notifications-audio-icon" class="bi bi-volume-mute-fill"></i>&nbsp;Toggle sound</a>
{{if $bookmark_link}}
<div class="dropdown-divider"></div>
- <a class="dropdown-item" href="{{$bookmark_link}}" target="_blank" ><i class="bi fa-bookmark"></i>&nbsp;{{$bookmark}}</a>
+ <a class="dropdown-item" href="{{$bookmark_link}}" target="_blank" ><i class="bi bi-bookmark-fill"></i>&nbsp;{{$bookmark}}</a>
{{/if}}
</div>
</div>
@@ -206,7 +206,7 @@ function update_chats(chats) {
chat_issue_notification(item.name + ':\n' + item.text, 'Hubzilla Chat');
}
$('#chatLineHolder').append(newNode);
- $(".autotime").timeago();
+ updateRelativeTime('.autotime');
var elem = document.getElementById('chatTopBar');
elem.scrollTop = elem.scrollHeight;
@@ -271,27 +271,27 @@ var chat_issue_notification = function (theBody,theTitle) {
function toggleChatNotificationAudio() {
if(!chat_notify_audio_enabled) {
chat_notify_audio_enabled = true;
- $('#toggle-notifications-audio-icon').removeClass('fa-volume-off');
- $('#toggle-notifications-audio-icon').addClass('fa-volume-up');
+ $('#toggle-notifications-audio-icon').removeClass('bi-volume-mute-fill');
+ $('#toggle-notifications-audio-icon').addClass('bi-volume-up-fill');
}
else {
chat_notify_audio_enabled = false;
- $('#toggle-notifications-audio-icon').removeClass('fa-volume-up');
- $('#toggle-notifications-audio-icon').addClass('fa-volume-off');
+ $('#toggle-notifications-audio-icon').removeClass('bi-volume-up-fill');
+ $('#toggle-notifications-audio-icon').addClass('bi-volume-mute-fill');
}
}
function toggleChatNotifications() {
if(!chat_notify_enabled) {
chat_notify_enabled = true;
- $('#toggle-notifications-icon').addClass('fa-bell');
- $('#toggle-notifications-icon').removeClass('fa-bell-slash-o');
+ $('#toggle-notifications-icon').addClass('bi-bell-fill');
+ $('#toggle-notifications-icon').removeClass('fa-bell-slash-fill');
$('#toggle-notifications-audio').removeClass('disabled');
}
else {
chat_notify_enabled = false;
- $('#toggle-notifications-icon').addClass('fa-bell-slash-o');
- $('#toggle-notifications-icon').removeClass('fa-bell');
+ $('#toggle-notifications-icon').addClass('bi-bell-slash-fill');
+ $('#toggle-notifications-icon').removeClass('bi-bell-fill');
$('#toggle-notifications-audio').addClass('disabled');
}
}