Fixes the issue about redirection to undesirable URL when clicked on the file control selection button.
All our views are inherited from the Backform.Form (a extended Backbone.View), which has an tag element set to 'form'. The default action for a button in form is to submit the data, and that results into undesirable redirection within our Views. We can resolve the issue of redirection by setting 'preventDefault' to true in the click event object on that button. But - we may use the button control within our view in future, and that will have the similar behaviour. Keeping that in mind, we set the default tag to 'div' instead of 'form' for all our views. ommit. Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=8a3a44ed25051af0c8eb6479d0c26c592cb2111b Author: Surinder Kumar <[email protected]> Modified Files -------------- web/pgadmin/static/js/backform.pgadmin.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) -- Sent via pgadmin-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers
