Clean up browser console

This commit is contained in:
Hillel Coren 2017-12-25 16:27:41 +02:00
parent 532e13736d
commit 89a68801e4
2 changed files with 4 additions and 2 deletions

View File

@ -11,7 +11,7 @@ php:
# - 5.6 # - 5.6
# - 7.0 # - 7.0
- 7.1 - 7.1
- 7.2 # - 7.2
# - hhvm # - hhvm
addons: addons:

View File

@ -6,6 +6,8 @@
$('#signUpModal').on('shown.bs.modal', function () { $('#signUpModal').on('shown.bs.modal', function () {
trackEvent('/account', '/view_sign_up'); 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) { $(['first_name','last_name','email','password']).each(function(i, field) {
var $input = $('form.signUpForm #new_'+field); var $input = $('form.signUpForm #new_'+field);
if (!$input.val()) { if (!$input.val()) {
@ -221,7 +223,7 @@
->placeholder(trans('texts.email')) ->placeholder(trans('texts.email'))
->autocomplete('email') ->autocomplete('email')
->label(' ') !!} ->label(' ') !!}
{!! Former::password('new_password') {!! Former::text('new_password')
->placeholder(trans('texts.password')) ->placeholder(trans('texts.password'))
->autocomplete('new-password') ->autocomplete('new-password')
->label(' ') !!} ->label(' ') !!}