2
0

Fix selectText for site password.

This commit is contained in:
Maarten Billemont 2015-05-03 14:36:07 -04:00
parent 6afdb38f98
commit ff12aa6d7f
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
<option value="phrase">Phrase</option>
</select>
</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 type="image" src="img/spinner.svg" />
</p>

View File

@ -62,7 +62,7 @@ function updateSite() {
else
mpw.generatePassword( $('#siteName')[0].value, $('#siteCounter')[0].valueAsNumber, $('#siteType')[0].value )
.then( function (sitePassword) {
$('#sitePassword').val(sitePassword);
$('#sitePassword').text(sitePassword);
update('site');
}, function (reason) {
update('site', null, reason);