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:
@@ -1 +1 @@
|
||||
$("#<%= dom_id(@investment) %>").html("<%= j render("select_investment", investment: @investment) %>");
|
||||
$("#<%= dom_id(@investment) %>").html("<%= j render("select_investment", investment: @investment) %>").trigger("inserted");
|
||||
|
||||
Reference in New Issue
Block a user