mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
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:
commit
0526024671
|
@ -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%',
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<'page-info'i>
|
||||
<'page-selector'p>
|
||||
>`,
|
||||
order: [[1, 'asc']],
|
||||
order: [[0, 'asc']],
|
||||
stateSave: true,
|
||||
buttons: [],
|
||||
processing: true,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue