Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1imWz0-0007aG-2O for pgadmin-hackers@arkaria.postgresql.org; Wed, 01 Jan 2020 05:55:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1imWyy-0007uj-Ro for pgadmin-hackers@arkaria.postgresql.org; Wed, 01 Jan 2020 05:55:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1imWyy-0007uc-H5 for pgadmin-hackers@lists.postgresql.org; Wed, 01 Jan 2020 05:55:48 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1imWyr-0004VO-SM for pgadmin-hackers@postgresql.org; Wed, 01 Jan 2020 05:55:47 +0000 Received: by mail-io1-xd44.google.com with SMTP id x1so35594261iop.7 for ; Tue, 31 Dec 2019 21:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qbMifaEEZBo8yeqZkPoC1li5DU+ZG2kFkgMJBHvBCRk=; b=eIbKqy5vtuKckiI58uiLAqdJ/2k9h0zBKkS/Ddr8K/XO6oLcRYLrchDOYNxrLUCYY3 T414O/8KyIc4Pfzo+oxeHujB0LlIxDc27GpGs7HA9YOYigxGRyMBXFJ9ubqC5uW6G3ev 6op5z6eSYgcR9VPQUnlmC5VL112RJcs64DkIsduAV5JmIXD3rp2f+Qb0shhkFjQmhlTX QFTBYisEKm0uaGvobooOzK+e4+CZVpIxqiyYT/k5Uh//WjNJtcjUcf21GkgfQCzh6Ur4 9AmqxcrQpz/T9eee6cIcYGiaRX128efgI7a1HgZTa8LM76lBYbakDNZveUqnKCsSWfsR 0WZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qbMifaEEZBo8yeqZkPoC1li5DU+ZG2kFkgMJBHvBCRk=; b=cWSQWkbqaLI6aMukP9LRybcg2VSZy29kSc5H6m3SAWQrA/1x5NShR2ZY7J5V97tYMS Kg5gzEJSMkAGYBkJ/RPx8c0mzOQjrL+FHkWYPnu3aHoktTnT8h4tqw5eXQgP2MPq5Wr6 l2qDAdAoAwc2aXserPGn1GDizjJURsE04pMViBnTlOkI7ZnIesvXt9xnqU8oY6zT8WMP PoLvM865lpZVRnTBzZQWmcSvPl2yFxV0rSyt/fGuMgsRFROPiRRhO2ljqxx2817ByFaR GBbiB+m7ghoUyeD+LkNd7CN6X768MhE2f1UPcr4U2nvvK7deZfdCVPsGeSem327HMxSK btYg== X-Gm-Message-State: APjAAAUvPu55QV/TsFcX3swRbJrWvlXo9ZyXHi5Zd5dLt2PksYbE6D/e bp1qkEX87NZkBCLW/yWNCL2ntzGRXpIC3a1u0eItL/HvwyGqwQVycpTyhibIWrXSJKKih8bfmLH avajjucJ7DtQL4+8I7a5TVzF1o7ugbjRN3jGIW4rujB3R7oM54ukM1/h7gQX8Dkq6LtfUcv/WxH yemq0A0stomXQar25wGtGBMSZdmgVaHhzIMcO6yeWedPZ+1BL+8Nk= X-Google-Smtp-Source: APXvYqxS14uk72Sk8AdeQaOF0HEorNqw2vve8X5SY49kj52pMQyyO9+fgfrX0euzZouoCFbyurz+6P49YbMjFuofOJM= X-Received: by 2002:a6b:db08:: with SMTP id t8mr12382911ioc.121.1577858140748; Tue, 31 Dec 2019 21:55:40 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Wed, 1 Jan 2020 11:25:29 +0530 Message-ID: Subject: Re: [pgAdmin][RM5038] Select2 enhancement - Load items on demand (scroll) To: Aditya Toshniwal Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="000000000000fc57fa059b0db957" X-CLOUD-SEC-AV-Info: edb,google_mail,monitor X-CLOUD-SEC-AV-Sent: true X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000fc57fa059b0db957 Content-Type: text/plain; charset="UTF-8" Thanks, patch applied. On Tue, Dec 24, 2019 at 1:01 PM Aditya Toshniwal < aditya.toshniwal@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to enhance select2 used in pgAdmin. The select2 > dropdown will show only a few items when opened initially. On scrolling it > will show others. Searching will work as before. This will reduce the > number of DOM nodes on page. > Note that, individual controls can disable the behaviour if desired by > passing onDemandLoad:false for select2 options. It is enabled by default. > > Kindly review. > > -- > Thanks and Regards, > Aditya Toshniwal > pgAdmin Hacker | Sr. Software Engineer | EnterpriseDB India | Pune > "Don't Complain about Heat, Plant a TREE" > -- *Thanks & Regards* *Akshay Joshi* *Sr. Software Architect* *EnterpriseDB Software India Private Limited* *Mobile: +91 976-788-8246* --000000000000fc57fa059b0db957 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks, patch applied.

On Tue, Dec 24, 2019 at 1:01 PM Adit= ya Toshniwal <adity= a.toshniwal@enterprisedb.com> wrote:
Hi Hackers,

Attached is the pa= tch to enhance=C2=A0select2 used in pgAdmin. The select2 dropdown will show= only a few items when opened initially. On scrolling it will show others. = Searching will work as before. This will reduce the number of DOM nodes on = page.
Note that, individual controls can disable the behaviour if desired b= y passing onDemandLoad:false for select2 options. It is enabled by default.=

Kindly review.

--
=
Thanks and Regards,
Aditya Toshniwal
pgAdmin Hacker | Sr. Software Engineer |=C2=A0EnterpriseDB= India |=C2=A0Pune
"Don't Complain about Heat, Plant a TREE"


--
Thanks & Regards
=
Akshay Joshi
Sr. Software Architect
EnterpriseDB Software India Private Limited
=
Mobile: += 91 976-788-8246
--000000000000fc57fa059b0db957--