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

@@ -82,6 +82,9 @@
App.ColumnsSelector.toggleColumn(event);
}
});
$(".column-selecteable").on("inserted", function() {
App.ColumnsSelector.initColumns();
});
}
};
}).call(this);