- collapsible tables on mailbox.php which are collapsed per default if they are long

- changed username field on the login form to the type "text" as "name" is no valid type which causes problems with some extensions (password managers)
This commit is contained in:
tehXor
2017-03-17 20:38:20 +01:00
parent 009f2e808f
commit 89aef716b4
2 changed files with 13 additions and 1 deletions

View File

@@ -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");
}
})
});