mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 16:40:16 +08:00
Make less opacity when editing or adding row
This commit is contained in:
parent
76ef468484
commit
dc79174160
2 changed files with 11 additions and 0 deletions
|
@ -128,6 +128,7 @@ var RepositoryDatatableRowEditor = (function() {
|
|||
|
||||
// First two columns are always present and visible
|
||||
$row.append(rowForm);
|
||||
$row.addClass('editing');
|
||||
$row.append($(TABLE_CELL));
|
||||
|
||||
$(TABLE.table().node()).find('tbody').prepend($row);
|
||||
|
@ -177,6 +178,7 @@ var RepositoryDatatableRowEditor = (function() {
|
|||
`);
|
||||
|
||||
$row.find('td').first().append(rowForm);
|
||||
$row.addClass('editing');
|
||||
|
||||
TABLE.cells(row.index(), row.columns().eq(0)).every(function() {
|
||||
let $header = $(TABLE.columns(this.index().column).header());
|
||||
|
|
|
@ -6,6 +6,15 @@
|
|||
.repository-table {
|
||||
margin-top: 20px;
|
||||
|
||||
&.editing {
|
||||
tbody>tr {
|
||||
&:not(.editing) {
|
||||
opacity: .4;
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dataTables_filter {
|
||||
float: right;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue