[pgAdmin4][Patch]: Auto redirect to page on opening FileManager when used in Fieldset

Поиск
Список
Период
Сортировка
Искать

[pgAdmin4][Patch]: Auto redirect to page on opening FileManager when used in Fieldset

От:
Surinder Kumar <surinder.kumar@enterprisedb.com>
Дата:
Вложения:
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

Re: [pgAdmin4][Patch]: Auto redirect to page on opening FileManager when used in Fieldset

От:
Ashesh Vashi <ashesh.vashi@enterprisedb.com>
Дата:
Thanks - committed!

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company


http://www.linkedin.com/in/asheshvashi


On Mon, May 23, 2016 at 4:15 PM, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:
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


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers


FAQ