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 1glpX6-0001jc-IG for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 06:27:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1glpX5-0004ci-97 for pgadmin-hackers@arkaria.postgresql.org; Tue, 22 Jan 2019 06:27:35 +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 1glpX5-0004cV-0I for pgadmin-hackers@lists.postgresql.org; Tue, 22 Jan 2019 06:27:35 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glpWy-000551-2L for pgadmin-hackers@postgresql.org; Tue, 22 Jan 2019 06:27:33 +0000 Received: by mail-qt1-x844.google.com with SMTP id l11so26495830qtp.0 for ; Mon, 21 Jan 2019 22:27:27 -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=vqIAb8e/J3VwC9FM5R9w9yO7AsQshQkgcWbE4as6+lw=; b=UvhkfnLcEO2IcQPqJgxOPnjz6dmkcrZqIqFv+dfzZ68NDcxdsEewsMFxSVv8Qr2/0N D2yU/3zMIBlLEm0aQeSgJK/t1dg27d8eGTYoSnScd0KcVd4CGcNIqAuOYxBMV/1sgjsD b2GHpNdPJaPVMDiZOinDt/iJ0FZocP/74C68TTK+LONIPxB+xKYW3CI+tohdLp57KiWH FXWmm/DQ6kQDZ/vBotY9I3Gja/GuVmwNFUkdWY+xJKZbokEatQ8qgSxsd7Xig+N66+l8 CseNvZlQnYWfH9KBL246GSU2W6/jW0TFnlalzryFVgEmtyeMt9jt2bJJHNY4xAdkYdER Fmtw== 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=vqIAb8e/J3VwC9FM5R9w9yO7AsQshQkgcWbE4as6+lw=; b=WtPfibKAuH5KgAu/1dQ5zsIQJLQztKSpXjqf+/mrc10PE+mY1BNhxLAfFugdx40P+X cZ2fL3JfoxHtJR7QlfutxHnvn5j3ESqzellPXBf8XsWrdPyJuN8iiEN8ZIhhsZbaDSVq UooCnIvx4czvlrfEHPKv4QxTHNCHs0DcyXdVZ4FNHg9o4Hqusr7ZV2Hk/96t5W04efat wPlQN2mmGfa4S44mGrhkIBMWBC10AD+Nr1O1Pka5/NkvEUbhnCoD6fYYmwEaPB/qig+r gI23MY2COB49KcsGxw3qvdmpYg7013PwcYmuFSkiPmp8aPXNecVo4AiFLMWduSg0WyYT p2wQ== X-Gm-Message-State: AJcUukd3RDcD2A7ISISYeGPOjbBnpHbOjQCk751jCqzP9Lir5Z/I0wEg IVxe2Zak3kiyVQPP7sCTRORcdROZFgmvphiNRLu1ag== X-Google-Smtp-Source: ALg8bN4NpblakbwzTTktvKedqemzt9STQwWSwVXSpXBC9Md418cqLPR6yP36y+ThB0Zrgpg5MUckyqRw19iqZfAij8w= X-Received: by 2002:a0c:fc09:: with SMTP id z9mr25401687qvo.157.1548138447108; Mon, 21 Jan 2019 22:27:27 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Akshay Joshi Date: Tue, 22 Jan 2019 11:57:16 +0530 Message-ID: Subject: Re: [pgAdmin4][RM3849] Ask to save unsaved query changes stopped working To: Aditya Toshniwal , Dave Page Cc: pgadmin-hackers Content-Type: multipart/alternative; boundary="00000000000034139c05800612ff" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000034139c05800612ff Content-Type: text/plain; charset="UTF-8" Hi Aditya Below are my review comments: - You have added new config parameter "*DISABLE_BEFOREUNLOAD_MESSAGE*" to make this request configurable, should it be the part of preferences setting instead of configuration? @Dave can you please comment on this. - Name "*DISABLE_BEFOREUNLOAD_MESSAGE"* is not clear as users perspective, can you please change it to some meaningful name. Apart from that code looks good to me. On Mon, Jan 21, 2019 at 1:24 PM Aditya Toshniwal < aditya.toshniwal@enterprisedb.com> wrote: > Hi Hackers, > > Attached is the patch to throw alert warning when user reloads or closes > the browser. > > Kindly review. > > -- > Thanks and Regards, > Aditya Toshniwal > Software Engineer | EnterpriseDB Software Solutions | Pune > "Don't Complain about Heat, Plant a tree" > -- *Akshay Joshi* *Sr. Software Architect * *Phone: +91 20-3058-9517Mobile: +91 976-788-8246* --00000000000034139c05800612ff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Aditya

Below are my review comments:=
  • You have added new config parameter "DISABLE_BEF= OREUNLOAD_MESSAGE" to make this request configurable, should it be= the part of preferences setting instead of configuration?=C2=A0@Dave can y= ou please comment on this.
  • Name "DISABLE_BEFOREUNLOAD_MESSA= GE"=C2=A0is not clear as users perspective, can you please change = it to some meaningful name.
Apart=C2=A0from that code looks=C2=A0g= ood to me.=C2=A0=C2=A0

On Mon, Jan 21, 2019 at 1:24 PM Aditya Tosh= niwal <aditya.toshn= iwal@enterprisedb.com> wrote:
Hi Hackers,

Attached is th= e patch to throw alert warning when user reloads or closes the browser.=C2= =A0

Kindly review.

--
Thanks and Regards,
Aditya Toshniwal
Software Engineer |=C2=A0EnterpriseDB Software S= olutions |=C2=A0Pune
<= span style=3D"font-family:"trebuchet ms",sans-serif;font-size:x-s= mall">"Don't Complain about Heat, Plant a = tree"


--
Akshay Joshi
Sr. S= oftware Architect
=

Phone: +91 20-3058-9517
Mobile: +91 976-788-8246
=
--00000000000034139c05800612ff--