Merge pull request #4888 from sboursen-scinote/sb_SCI-7562

Hover for sorting function in other SN tables (with sorting function) [SCI-7562]
This commit is contained in:
aignatov-bio 2023-03-07 14:10:06 +01:00 committed by GitHub
commit 0526024671
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 3 deletions

View file

@ -236,7 +236,7 @@
var $table = $('#label-templates-table');
LABEL_TEMPLATE_TABLE = $table.DataTable({
dom: "R<'label-toolbar'<'label-buttons-container'><'label-search-container'f>>t<'pagination-row hidden'<'pagination-info'li><'pagination-actions'p>>",
order: [[1, 'desc']],
order: [[2, 'desc']],
stateSave: true,
sScrollX: '100%',
sScrollXInner: '100%',

View file

@ -25,7 +25,7 @@
<'page-info'i>
<'page-selector'p>
>`,
order: [[1, 'asc']],
order: [[0, 'asc']],
stateSave: true,
buttons: [],
processing: true,

View file

@ -16,6 +16,7 @@
font-weight: bold;
overflow: hidden;
white-space: nowrap;
cursor: pointer;
.modal-tooltiptext {
margin-left: -10px;
@ -28,6 +29,16 @@
opacity: 1;
}
&.sorting::after {
opacity: 0;
}
&.sorting:hover {
&::after {
opacity: 1;
}
}
&:first-child {
border-left: 0;
border-top-left-radius: $border-radius-default;

View file

@ -988,7 +988,7 @@ class Constants
'time' => 0,
'start' => 0,
'length' => REPOSITORY_DEFAULT_PAGE_SIZE,
'order' => [[2, 'asc']], # Default sorting by 'ID' column
'order' => [[3, 'asc']], # Default sorting by 'name' column
'columns' => [],
'assigned' => 'assigned',
'ColReorder' => [*0..7]