Show only defined columns on inserted rows

When we were inserting a row or replacing an existing one (just like we
do when we click the link to select an investment), we were entering a
row containing all columns, and all of them were displayed even if they
had been excluded using the column selector.

This caused the table to move in a strange way, which sometimes made the
investment selection tests fail.
This commit is contained in:
Javi Martín
2019-07-12 00:40:15 +02:00
parent c6fc0062d7
commit 9d6ed7a085
3 changed files with 19 additions and 1 deletions

View File

@@ -1 +1 @@
$("#<%= dom_id(@investment) %>").html("<%= j render("select_investment", investment: @investment) %>");
$("#<%= dom_id(@investment) %>").html("<%= j render("select_investment", investment: @investment) %>").trigger("inserted");