revert notification widget changes

This commit is contained in:
Mike Macgirvin 2023-11-17 13:18:26 +11:00
parent 137514f6cc
commit 58554b16c9

View file

@ -78,24 +78,12 @@
});
{{/if}}
{{foreach $notifications as $notification}}
{{if $notification.filter}}
$(document).on('click', '#tt-{{$notification.type}}-only', function(e) {
e.preventDefault();
let currentNotifier = $('#nav-{{$notification.type}}-menu [data-thread_top=false]');
if (currentNotifier).isVisible()
{
currentNotifier.toggle(false);
$(this).toggleClass('active sticky-top', false);
}
else
{
// $('.notification-link:not(.collapsed)').collapse(false);
currentNotifier.toggle(true);
$(this).toggleClass('active sticky-top', true);
}
$('#nav-{{$notification.type}}-menu [data-thread_top=false]').toggle();
$(this).toggleClass('active sticky-top');
});
$(document).on('click ', '#cn-{{$notification.type}}-input-clear', function(e) {
$('#cn-{{$notification.type}}-input').val('');
@ -164,7 +152,7 @@
</div>
<div id="notifications" class="navbar-nav">
{{foreach $notifications as $notification}}
<div class="collapse notify-container {{$notification.type}}-button">
<div class="collapse {{$notification.type}}-button">
<a class="list-group-item list-group-item-action notification-link" href="#" title="{{$notification.title}}" data-bs-target="#nav-{{$notification.type}}-sub" data-bs-toggle="collapse" data-type="{{$notification.type}}">
<i class="fa fa-fw fa-{{$notification.icon}}"></i> {{$notification.label}}
<span class="float-end badge bg-{{$notification.severity}} {{$notification.type}}-update"></span>