Prevent chrome to ask for password save.

This commit is contained in:
Martin Edenhofer 2015-08-30 00:59:49 +02:00
parent e99cbf84e7
commit ad732e298c
6 changed files with 41 additions and 9 deletions

View file

@ -616,10 +616,6 @@ class App.Wizard extends App.Controller
hideAlert: (screen) =>
@$(".#{screen}").find('.alert').addClass('hide')
hideAlerts: =>
@$('.form-group').removeClass('has-error')
@$('.alert').addClass('hide')
disable: (e) =>
@formDisable(e)
@$('.wizard-controls .btn').attr('disabled', true)

View file

@ -367,7 +367,7 @@ class Base extends App.Wizard
@navigate 'getting_started/email_notification'
else
for key, value of data.messages
@showAlert( key, value )
@showAlert(key, value)
@enable(e)
fail: =>
@enable(e)
@ -376,6 +376,14 @@ class Base extends App.Wizard
# add resized image
App.ImageService.resizeForApp( @params.logo, @logoPreview.width(), @logoPreview.height(), store )
hideAlerts: =>
@$('.form-group').removeClass('has-error')
@$('.alert').addClass('hide')
showAlert: (field, message) =>
@$("[name=#{field}]").closest('.form-group').addClass('has-error')
@$("[name=#{field}]").closest('.form-group').find('.alert').removeClass('hide').text( App.i18n.translateInline( message ) )
App.Config.set( 'getting_started/base', Base, 'Routes' )

View file

@ -1,6 +1,10 @@
<div class="modal-dialog wizard">
<form class="modal-content setup wizard js-intro">
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="modal-header">
<div class="modal-close js-close">
<svg class="icon-diagonal-cross"><use xlink:href="#icon-diagonal-cross" /></svg>
@ -86,6 +90,10 @@
</form>
<form class="modal-content setup wizard hide js-inbound">
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="modal-header">
<div class="modal-close js-close">
<svg class="icon-diagonal-cross"><use xlink:href="#icon-diagonal-cross" /></svg>
@ -109,6 +117,10 @@
</form>
<form class="modal-content setup wizard hide js-outbound">
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="modal-header">
<div class="modal-close js-close">
<svg class="icon-diagonal-cross"><use xlink:href="#icon-diagonal-cross" /></svg>

View file

@ -35,6 +35,10 @@
</form>
<form class="modal-content setup wizard js-outbound">
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="modal-header">
<div class="modal-close js-close">
<svg class="icon-diagonal-cross"><use xlink:href="#icon-diagonal-cross" /></svg>

View file

@ -2,7 +2,10 @@
<svg class="wizard-logo icon-full-logo"><use xlink:href="#icon-full-logo" /></svg>
<form class="setup wizard js-intro">
<input type="password" style="display:none"/><!-- dummy to prevent chrome to ask for password save -->
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="wizard-slide">
<h2><%- @T('Email Account') %></h2>
<div class="wizard-body vertical justified">
@ -64,7 +67,10 @@
</form>
<form class="setup wizard hide js-inbound">
<input type="password" style="display:none"/><!-- dummy to prevent chrome to ask for password save -->
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="wizard-slide">
<h2><%- @T('Email Inbound') %></h2>
<div class="wizard-body vertical justified">
@ -79,7 +85,10 @@
</form>
<form class="setup wizard hide js-outbound">
<input type="password" style="display:none"/><!-- dummy to prevent chrome to ask for password save -->
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="wizard-slide">
<h2><%- @T('Email Outbound') %></h2>
<div class="wizard-body vertical justified">

View file

@ -2,7 +2,10 @@
<svg class="wizard-logo icon-full-logo"><use xlink:href="#icon-full-logo" /></svg>
<form class="setup wizard js-outbound">
<input type="password" style="display:none"/><!-- dummy to prevent chrome to ask for password save -->
<!-- dummy to prevent chrome to ask for password save -->
<input style="display:none">
<input type="password" style="display:none">
<!-- /dummy to prevent chrome to ask for password save -->
<div class="wizard-slide">
<h2><%- @T('Email Notification') %></h2>
<div class="wizard-body vertical justified">