public inbox for [email protected]  
help / color / mirror / Atom feed
From: Nikhil Mohite <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin][RM-6157]: UI issue in delete records.
Date: Thu, 4 Feb 2021 17:01:58 +0530
Message-ID: <CAOBg0AM8idG7+c8+QZ7Cw+0v=KjO9H0Vmjv1hwVZXLnn4m7j9A@mail.gmail.com> (raw)

Hi Team,

Please find the attached patch for RM-6157
<https://redmine.postgresql.org/issues/6157;: UI issue in delete records.
1. Resolved CSS issue in delete records from a data-output table.

-- 
*Thanks & Regards,*
*Nikhil Mohite*
*Software Engineer.*
*EDB Postgres* <https://www.enterprisedb.com/;
*Mob.No: +91-7798364578.*


Attachments:

  [application/octet-stream] RM_6157.patch (993B, 3-RM_6157.patch)
  download | inline diff:
diff --git a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
index 21cb4c88..34985b80 100644
--- a/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
+++ b/web/pgadmin/tools/sqleditor/static/js/sqleditor.js
@@ -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,


view thread (4+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin][RM-6157]: UI issue in delete records.
  In-Reply-To: <CAOBg0AM8idG7+c8+QZ7Cw+0v=KjO9H0Vmjv1hwVZXLnn4m7j9A@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox