Skip to content

Commit

Permalink
Hide duplicate row for auto-append
Browse files Browse the repository at this point in the history
  • Loading branch information
Gomez committed Dec 29, 2019
1 parent 1245f0c commit 4c79e36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

/* You cannot delete the auto-append row */
.auto-append > .datagridwidget-manipulator.delete-row a,
.auto-append > .datagridwidget-manipulator.duplicate-row a,
.auto-append > .datagridwidget-manipulator.move-up a,
.auto-append > .datagridwidget-manipulator.move-down a,
.auto-append > .datagridwidget-manipulator.insert-row a {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ require([
var tbody = this.getParentByClass(currnode, "datagridwidget-body");
var dgf = $(dataGridField2Functions.getParentByClass(currnode, "datagridwidget-table-view"));
var thisRow = this.getParentRow(currnode);
var filteredRows = this.getVisibleRows(currnode);

// find all select2 and destroy them
// https://stackoverflow.com/a/17381913
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@
display: none;
}
}
>.datagridwidget-manipulator.duplicate-row {
img {
display: none;
}
}
}

.minimum-row {
Expand Down

0 comments on commit 4c79e36

Please sign in to comment.