From 89a68801e4fea21021e02eb0e00ac8a685c9baa5 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 25 Dec 2017 16:27:41 +0200 Subject: [PATCH] Clean up browser console --- .travis.yml | 2 +- resources/views/partials/sign_up.blade.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ba4fbd3de3e8..080cdc7ceb02 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,7 +11,7 @@ php: # - 5.6 # - 7.0 - 7.1 - - 7.2 +# - 7.2 # - hhvm addons: diff --git a/resources/views/partials/sign_up.blade.php b/resources/views/partials/sign_up.blade.php index 60aa8e3fb086..54db50b3d3db 100644 --- a/resources/views/partials/sign_up.blade.php +++ b/resources/views/partials/sign_up.blade.php @@ -6,6 +6,8 @@ $('#signUpModal').on('shown.bs.modal', function () { trackEvent('/account', '/view_sign_up'); + // change the type after page load to prevent errors in Chrome console + $('#new_password').attr('type', 'password'); $(['first_name','last_name','email','password']).each(function(i, field) { var $input = $('form.signUpForm #new_'+field); if (!$input.val()) { @@ -221,7 +223,7 @@ ->placeholder(trans('texts.email')) ->autocomplete('email') ->label(' ') !!} - {!! Former::password('new_password') + {!! Former::text('new_password') ->placeholder(trans('texts.password')) ->autocomplete('new-password') ->label(' ') !!}