Fix selectText for site password.
This commit is contained in:
parent
6afdb38f98
commit
ff12aa6d7f
@ -42,7 +42,7 @@
|
|||||||
<option value="phrase">Phrase</option>
|
<option value="phrase">Phrase</option>
|
||||||
</select>
|
</select>
|
||||||
</span><br>
|
</span><br>
|
||||||
<input id="sitePassword" placeholder="Your password is ..." disabled /><br>
|
<h2 id="sitePassword" title="Your password is ..."></h2><br>
|
||||||
<input id="logout" type="submit" value="⎋" />
|
<input id="logout" type="submit" value="⎋" />
|
||||||
<input type="image" src="img/spinner.svg" />
|
<input type="image" src="img/spinner.svg" />
|
||||||
</p>
|
</p>
|
||||||
|
@ -62,7 +62,7 @@ function updateSite() {
|
|||||||
else
|
else
|
||||||
mpw.generatePassword( $('#siteName')[0].value, $('#siteCounter')[0].valueAsNumber, $('#siteType')[0].value )
|
mpw.generatePassword( $('#siteName')[0].value, $('#siteCounter')[0].valueAsNumber, $('#siteType')[0].value )
|
||||||
.then( function (sitePassword) {
|
.then( function (sitePassword) {
|
||||||
$('#sitePassword').val(sitePassword);
|
$('#sitePassword').text(sitePassword);
|
||||||
update('site');
|
update('site');
|
||||||
}, function (reason) {
|
}, function (reason) {
|
||||||
update('site', null, reason);
|
update('site', null, reason);
|
||||||
|
Loading…
Reference in New Issue
Block a user