mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:15:16 +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}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{foreach $notifications as $notification}}
|
{{foreach $notifications as $notification}}
|
||||||
{{if $notification.filter}}
|
{{if $notification.filter}}
|
||||||
$(document).on('click', '#tt-{{$notification.type}}-only', function(e) {
|
$(document).on('click', '#tt-{{$notification.type}}-only', function(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let currentNotifier = $('#nav-{{$notification.type}}-menu [data-thread_top=false]');
|
$('#nav-{{$notification.type}}-menu [data-thread_top=false]').toggle();
|
||||||
if (currentNotifier).isVisible()
|
$(this).toggleClass('active sticky-top');
|
||||||
{
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
$(document).on('click ', '#cn-{{$notification.type}}-input-clear', function(e) {
|
$(document).on('click ', '#cn-{{$notification.type}}-input-clear', function(e) {
|
||||||
$('#cn-{{$notification.type}}-input').val('');
|
$('#cn-{{$notification.type}}-input').val('');
|
||||||
|
@ -164,7 +152,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div id="notifications" class="navbar-nav">
|
<div id="notifications" class="navbar-nav">
|
||||||
{{foreach $notifications as $notification}}
|
{{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}}">
|
<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}}
|
<i class="fa fa-fw fa-{{$notification.icon}}"></i> {{$notification.label}}
|
||||||
<span class="float-end badge bg-{{$notification.severity}} {{$notification.type}}-update"></span>
|
<span class="float-end badge bg-{{$notification.severity}} {{$notification.type}}-update"></span>
|
||||||
|
|
Loading…
Reference in a new issue