| From: | Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com> |
|---|---|
| To: | pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org> |
| Subject: | [pgAdmin4][Patch]: Auto redirect to page on opening FileManager when used in Fieldset |
| Date: | 2016-05-23 10:45:22 |
| Message-ID: | CAM5-9D_ng3B7g=GqBEeUk3XjwqBH1Ecjfrpvd9_pwc1Sh4fHGg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers |
Hi,
*Issue*: When FileControl is used in *<fieldset> *tag, it auto redirects to
some url when FileManager is opened up.
*Reason: *The issue was due to *<form>* tag, when a jQuery event which is
bound to an element gets fired, the event callback then delegate the click
event to the parent element which is form tag in this case and thus the
form was submitted. so this behaviour can be prevented by using
*event.preventDefault.*
But we found that it is not necessary to use *<form>* tag in
*Backform.Dialog* View.
so it can removed.
Please find the patch for this issue.
Thanks,
Surinder Kumar
| Attachment | Content-Type | Size |
|---|---|---|
| form_tag_redirect_page.patch | application/octet-stream | 930 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ashesh Vashi | 2016-05-23 11:07:58 | pgAdmin 4 commit: Fixes the issue about redirection to undesirable URL |
| Previous Message | Ashesh Vashi | 2016-05-23 07:54:08 | Re: [pgAdmin4]: Query tool and debugger height issue |