Make less opacity when editing or adding row

This commit is contained in:
Urban Rotnik 2020-01-27 14:39:45 +01:00
parent 76ef468484
commit dc79174160
2 changed files with 11 additions and 0 deletions

View file

@ -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());

View file

@ -6,6 +6,15 @@
.repository-table {
margin-top: 20px;
&.editing {
tbody>tr {
&:not(.editing) {
opacity: .4;
pointer-events: none;
}
}
}
.dataTables_filter {
float: right;
}