mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
revert notification widget changes
This commit is contained in:
parent
137514f6cc
commit
58554b16c9
1 changed files with 3 additions and 15 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue