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> <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>

View File

@ -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);