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 <surinder.kumar@enterprisedb.com> Modified Files -------------- web/pgadmin/static/js/backform.pgadmin.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера