Fixed an issue where strike-through is not visible for rows selected for deletion after scrolling. Fixes #6157

This commit is contained in:
Nikhil Mohite 2021-02-05 13:57:35 +05:30 committed by Akshay Joshi
parent 181bec62ce
commit 9e85fb3de3
2 changed files with 10 additions and 0 deletions

View File

@ -28,6 +28,7 @@ Bug fixes
| `Issue #6045 <https://redmine.postgresql.org/issues/6045>`_ - Fixed autocomplete issue where it is not showing any suggestions if the schema name contains escape characters.
| `Issue #6087 <https://redmine.postgresql.org/issues/6087>`_ - Fixed an issue where the dependencies tab showing multiple owners for the objects having shared dependencies.
| `Issue #6143 <https://redmine.postgresql.org/issues/6143>`_ - Fixed an issue where shared server entries not getting deleted from SQLite database if the user gets deleted.
| `Issue #6157 <https://redmine.postgresql.org/issues/6157>`_ - Fixed an issue where strike-through is not visible for rows selected for deletion after scrolling.
| `Issue #6163 <https://redmine.postgresql.org/issues/6163>`_ - Fixed an issue where Zoom to fit button only works if the diagram is larger than the canvas.
| `Issue #6164 <https://redmine.postgresql.org/issues/6164>`_ - Ensure that the diagram should not vanish entirely if zooming out too far in ERD.
| `Issue #6177 <https://redmine.postgresql.org/issues/6177>`_ - Fixed an issue while downloading ERD images in Safari and Firefox.

View File

@ -1051,6 +1051,15 @@ define('tools.querytool', [
};
self.handler.slickgrid = grid;
// Add listener on data-grid table scroll.
self.handler.slickgrid.onScroll.subscribe(function() {
if(Object.keys(self.handler.data_store.deleted).length > 0) {
setTimeout(() => {
$(self.handler.gridView.grid.getCanvasNode()).find('div.selected').removeClass('strikeout');
$(self.handler.gridView.grid.getCanvasNode()).find('div.selected').addClass('strikeout');
}, 100);
}
});
self.handler.slickgrid.CSVOptions = {
quoting: self.preferences.results_grid_quoting,
quote_char: self.preferences.results_grid_quote_char,