diff --git a/data/web/index.php b/data/web/index.php index 31bafda6..e34b4da5 100644 --- a/data/web/index.php +++ b/data/web/index.php @@ -29,7 +29,7 @@ $_SESSION['return_to'] = $_SERVER['REQUEST_URI'];
- +
diff --git a/data/web/js/mailbox.js b/data/web/js/mailbox.js index eedd51cb..9bd8ef9b 100644 --- a/data/web/js/mailbox.js +++ b/data/web/js/mailbox.js @@ -51,4 +51,16 @@ $(document).ready(function() { $panel.find('.panel-body input').focus(); } }); + $('.container').on('click', '.panel-heading .panel-title', function(e){ + var $this = $(this), + $panel = $this.parents('.panel'); + $panel.find('.table-responsive').slideToggle("fast"); + }); + $('.panel-heading .panel-title').addClass('clickable'); + $('.panel .table-responsive').each(function() { + if ($(this).height() > 550) { + // If one is too large initially hide all + $('.panel .table-responsive').slideUp("fast"); + } + }) });