mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Fix Firefox password autofill issue (Closes #229)
This commit is contained in:
parent
4d2df09946
commit
eea55d4e0a
11 changed files with 212 additions and 166 deletions
|
|
@ -86,3 +86,15 @@ AdminLoginViewModel.prototype.onHide = function ()
|
|||
{
|
||||
this.loginFocus(false);
|
||||
};
|
||||
|
||||
AdminLoginViewModel.prototype.onBuild = function ()
|
||||
{
|
||||
_.delay(function () {
|
||||
$('.checkAutocomplete').trigger('change');
|
||||
}, 100);
|
||||
};
|
||||
|
||||
AdminLoginViewModel.prototype.submitForm = function ()
|
||||
{
|
||||
this.submitCommand();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -325,6 +325,16 @@ LoginViewModel.prototype.onBuild = function ()
|
|||
});
|
||||
});
|
||||
}, 50);
|
||||
|
||||
_.delay(function () {
|
||||
$('.checkAutocomplete').trigger('change');
|
||||
}, 100);
|
||||
|
||||
};
|
||||
|
||||
LoginViewModel.prototype.submitForm = function ()
|
||||
{
|
||||
this.submitCommand();
|
||||
};
|
||||
|
||||
LoginViewModel.prototype.selectLanguage = function ()
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
<button type="button" class="close" data-bind="click: function () { submitError('') }">×</button>
|
||||
<span data-bind="text: submitError"></span>
|
||||
</div>
|
||||
<form class="form-horizontal span4 wrapper loginForm thm-login" action="#/" onsubmit="return false;" data-bind="command: submitCommand">
|
||||
<form class="form-horizontal span4 wrapper loginForm thm-login" action="#/" data-bind="submit: submitForm">
|
||||
<div class="control-group" data-bind="css: {'error': loginError}">
|
||||
<div class="input-append">
|
||||
<input type="text" class="inputLogin span4" placeholder="Login"
|
||||
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="text" class="inputLogin span4 checkAutocomplete" placeholder="Login" name="RainLoopAdminLogin" id="RainLoopAdminLogin"
|
||||
autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: login, hasFocus: loginFocus" />
|
||||
<span class="add-on">
|
||||
<i class="icon-user"></i>
|
||||
|
|
@ -18,8 +18,8 @@
|
|||
</div>
|
||||
<div class="control-group" data-bind="css: {'error': passwordError}">
|
||||
<div class="input-append">
|
||||
<input type="password" class="inputPassword span4" placeholder="Password"
|
||||
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="password" class="inputPassword span4 checkAutocomplete" placeholder="Password" name="RainLoopAdminPassword" id="RainLoopAdminPassword"
|
||||
autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: password" />
|
||||
<span class="add-on">
|
||||
<i class="icon-key"></i>
|
||||
|
|
|
|||
|
|
@ -16,11 +16,12 @@
|
|||
<button type="button" class="close" data-bind="click: function () { submitError('') }">×</button>
|
||||
<span data-bind="text: submitError"></span>
|
||||
</div>
|
||||
<form class="form-horizontal span4 wrapper loginForm thm-login" action="#/" onsubmit="return false;" data-bind="command: submitCommand">
|
||||
<form class="form-horizontal span4 wrapper loginForm thm-login" action="#/" data-bind="submit: submitForm">
|
||||
{{INCLUDE/TopControlGroup/PLACE}}
|
||||
<div class="control-group" data-bind="css: {'error': emailError}">
|
||||
<div class="input-append">
|
||||
<input type="email" class="i18n inputEmail span4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="email" class="i18n inputEmail span4 checkAutocomplete" name="RainLoopEmail" id="RainLoopEmail"
|
||||
autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: email, hasFocus: emailFocus" data-i18n-placeholder="LOGIN/LABEL_EMAIL" />
|
||||
<span class="add-on">
|
||||
<i class="icon-mail"></i>
|
||||
|
|
@ -29,7 +30,8 @@
|
|||
</div>
|
||||
<div class="control-group" data-bind="css: {'error': passwordError}">
|
||||
<div class="input-append">
|
||||
<input type="password" class="i18n inputPassword span4" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
<input type="password" class="i18n inputPassword span4 checkAutocomplete" name="RainLoopPassword" id="RainLoopPassword"
|
||||
autocorrect="off" autocapitalize="off" spellcheck="false"
|
||||
data-bind="value: password" data-i18n-placeholder="LOGIN/LABEL_PASSWORD" />
|
||||
<span class="add-on">
|
||||
<i class="icon-key"></i>
|
||||
|
|
|
|||
|
|
@ -6256,6 +6256,18 @@ AdminLoginViewModel.prototype.onHide = function ()
|
|||
this.loginFocus(false);
|
||||
};
|
||||
|
||||
AdminLoginViewModel.prototype.onBuild = function ()
|
||||
{
|
||||
_.delay(function () {
|
||||
$('.checkAutocomplete').trigger('change');
|
||||
}, 100);
|
||||
};
|
||||
|
||||
AdminLoginViewModel.prototype.submitForm = function ()
|
||||
{
|
||||
this.submitCommand();
|
||||
};
|
||||
|
||||
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||||
|
||||
/**
|
||||
|
|
|
|||
2
rainloop/v/0.0.0/static/js/admin.min.js
vendored
2
rainloop/v/0.0.0/static/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -12753,6 +12753,16 @@ LoginViewModel.prototype.onBuild = function ()
|
|||
});
|
||||
});
|
||||
}, 50);
|
||||
|
||||
_.delay(function () {
|
||||
$('.checkAutocomplete').trigger('change');
|
||||
}, 100);
|
||||
|
||||
};
|
||||
|
||||
LoginViewModel.prototype.submitForm = function ()
|
||||
{
|
||||
this.submitCommand();
|
||||
};
|
||||
|
||||
LoginViewModel.prototype.selectLanguage = function ()
|
||||
|
|
|
|||
6
rainloop/v/0.0.0/static/js/app.min.js
vendored
6
rainloop/v/0.0.0/static/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue