|
@@ -384,6 +384,11 @@
|
|
|
<li class="user--boxlist_item">
|
|
<li class="user--boxlist_item">
|
|
|
<a href="/profile">Profilo</a>
|
|
<a href="/profile">Profilo</a>
|
|
|
</li>
|
|
</li>
|
|
|
|
|
+ @if(Auth::user()->level == env('LEVEL_ADMIN', 0))
|
|
|
|
|
+ <li class="user--boxlist_item">
|
|
|
|
|
+ <a href="/azienda">Azienda</a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ @endif
|
|
|
<li class="user--boxlist_item">
|
|
<li class="user--boxlist_item">
|
|
|
<a href="/logout">Logout</a>
|
|
<a href="/logout">Logout</a>
|
|
|
</li>
|
|
</li>
|
|
@@ -418,9 +423,19 @@
|
|
|
$(".todayButton").addClass("lightGrey");
|
|
$(".todayButton").addClass("lightGrey");
|
|
|
}
|
|
}
|
|
|
$(document).ready(function() {
|
|
$(document).ready(function() {
|
|
|
- $(document).on("click",`[data-bs-trigger='hover focus']`,function() {
|
|
|
|
|
- $(".bs-popover-auto").css('display','none')
|
|
|
|
|
- $(this).popover('hide');
|
|
|
|
|
|
|
+ // Initialize all popovers
|
|
|
|
|
+ var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
|
|
|
|
+ var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
|
|
|
|
|
+ return new bootstrap.Popover(popoverTriggerEl);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // Your click handler
|
|
|
|
|
+ $(document).on("click", "[data-bs-trigger='hover focus']", function() {
|
|
|
|
|
+ $(".bs-popover-auto").css('display', 'none');
|
|
|
|
|
+ var popover = bootstrap.Popover.getInstance(this);
|
|
|
|
|
+ if (popover) {
|
|
|
|
|
+ popover.hide();
|
|
|
|
|
+ }
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
function newexportaction(e, dt, button, config) {
|
|
function newexportaction(e, dt, button, config) {
|