Removed empty value attr from login dialog
This commit is contained in:
parent
54b7fc57c0
commit
d1d5a93fd6
@ -116,8 +116,8 @@ lychee.loginDialog = function() {
|
|||||||
|
|
||||||
let msg = lychee.html`
|
let msg = lychee.html`
|
||||||
<p class='signIn'>
|
<p class='signIn'>
|
||||||
<input class='text' name='username' autocomplete='username' type='text' value='' placeholder='username' autocapitalize='off' autocorrect='off'>
|
<input class='text' name='username' autocomplete='username' type='text' placeholder='username' autocapitalize='off' autocorrect='off'>
|
||||||
<input class='text' name='password' autocomplete='current-password' type='password' value='' placeholder='password'>
|
<input class='text' name='password' autocomplete='current-password' type='password' placeholder='password'>
|
||||||
</p>
|
</p>
|
||||||
<p class='version'>Lychee $${ lychee.version }<span> – <a target='_blank' href='$${ lychee.updateURL }'>Update available!</a><span></p>
|
<p class='version'>Lychee $${ lychee.version }<span> – <a target='_blank' href='$${ lychee.updateURL }'>Update available!</a><span></p>
|
||||||
`
|
`
|
||||||
@ -136,14 +136,6 @@ lychee.loginDialog = function() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
if (localStorage) {
|
|
||||||
let localUsername = localStorage.getItem('lychee_username')
|
|
||||||
if (localUsername!=null && localUsername.length>0) {
|
|
||||||
$('.basicModal input[name="username"]').val(localUsername)
|
|
||||||
$('.basicModal input[name="password"]').focus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (lychee.checkForUpdates==='1') lychee.getUpdate()
|
if (lychee.checkForUpdates==='1') lychee.getUpdate()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user