Bug 618516 - Improve placeholder behavior for JPAKE codes [r=mbrubeck]

This commit is contained in:
Mark Finkle 2010-12-10 22:33:41 -05:00
parent 8f265c7dc6
commit d2021b5f26
2 changed files with 9 additions and 6 deletions

View File

@ -533,9 +533,9 @@
<description class="syncsetup-center" flex="1">&sync.setup.jpake;</description>
<separator/>
<vbox align="center" flex="1">
<description id="syncsetup-code1" class="syncsetup-code"></description>
<description id="syncsetup-code2" class="syncsetup-code"></description>
<description id="syncsetup-code3" class="syncsetup-code"></description>
<description id="syncsetup-code1" class="syncsetup-code">....</description>
<description id="syncsetup-code2" class="syncsetup-code">....</description>
<description id="syncsetup-code3" class="syncsetup-code">....</description>
</vbox>
<separator/>
<description class="syncsetup-center syncsetup-link" flex="1" onclick="WeaveGlue.openManual();">&sync.fallback;</description>

View File

@ -69,9 +69,9 @@ let WeaveGlue = {
},
abortEasySetup: function abortEasySetup() {
document.getElementById("syncsetup-code1").value = "";
document.getElementById("syncsetup-code2").value = "";
document.getElementById("syncsetup-code3").value = "";
document.getElementById("syncsetup-code1").value = "....";
document.getElementById("syncsetup-code2").value = "....";
document.getElementById("syncsetup-code3").value = "....";
if (!this.jpake)
return;
@ -80,6 +80,9 @@ let WeaveGlue = {
},
open: function open() {
// Clear up any previous JPAKE codes
this.abortEasySetup();
// Show the connect UI
document.getElementById("syncsetup-container").hidden = false;
document.getElementById("syncsetup-jpake").hidden = false;