Skip to content

Commit

Permalink
(#334) Keep the table header displayed in thumbnail mode so it can be…
Browse files Browse the repository at this point in the history
… used for sorting
  • Loading branch information
Difegue committed Dec 13, 2020
1 parent aa95fed commit 909714a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/js/index_datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,17 +149,17 @@ function thumbViewInit(settings) {
if (localStorage.indexViewMode == 1) {
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
if ($('#thumbs_container').length < 1)
$('.top').after("<div id='thumbs_container'></div>");
$('.datatables').after("<div id='thumbs_container'></div>");

// clear out the thumbs container
$('#thumbs_container').html('');

$('.itg').hide();
$('.list').hide();
}
else {
//Destroy the thumb container, make the table visible again and ensure autowidth is correct
$('#thumbs_container').remove();
$('.itg').show();
$('.list').show();

//nuke style of table - datatables' auto-width gets a bit lost when coming back from thumb view.
$('.datatables').attr("style", "");
Expand Down

0 comments on commit 909714a

Please sign in to comment.