diff --git a/public/assets/js/as/app.js b/public/assets/js/as/app.js index 97f8371..4cf43cd 100644 --- a/public/assets/js/as/app.js +++ b/public/assets/js/as/app.js @@ -1,13 +1,14 @@ var as = {}; as.toggleSidebar = function () { - $(".sidebar").toggleClass('expanded'); + $(".sidebar").toggleClass("expanded"); + $("body").toggleClass("sidebar-enable"); // Permette di aggiungere uno stato globale }; as.hideNotifications = function () { $(".alert-notification").slideUp(600, function () { $(this).remove(); - }) + }); }; as.updateSidebarSize = function () { @@ -19,12 +20,14 @@ as.updateSidebarSize = function () { }; as.init = function () { - $.ajaxSetup({ - headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } + headers: { + "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"), + }, }); - $("#sidebar-toggle").click(as.toggleSidebar); + // Aggiunto supporto per il tasto hamburger + $(".button-menu-mobile").click(as.toggleSidebar); $('[data-toggle="tooltip"]').tooltip(); $('[data-toggle="popover"]').popover(); @@ -34,9 +37,9 @@ as.init = function () { setTimeout(as.hideNotifications, 3500); $("a[data-toggle=loader], button[data-toggle=loader]").click(function () { - if ($(this).parents('form').valid()) { - as.btn.loading($(this), $(this).data('loading-text')); - $(this).parents('form').submit(); + if ($(this).parents("form").valid()) { + as.btn.loading($(this), $(this).data("loading-text")); + $(this).parents("form").submit(); } }); diff --git a/public/userportal/documents-home.php b/public/userportal/documents-home.php index d698ab6..700399d 100644 --- a/public/userportal/documents-home.php +++ b/public/userportal/documents-home.php @@ -326,13 +326,20 @@ while ($row = $queryPages->fetch_assoc()) {
-
+

- Trascina qui i documenti o clicca per caricare + Trascina qui i documenti o clicca per caricarli
+
+ +
+
Documenti già caricati:
0) { ?> @@ -386,54 +393,52 @@ while ($row = $queryPages->fetch_assoc()) {