Skip to content

Commit

Permalink
disable editing loaded secret
Browse files Browse the repository at this point in the history
  • Loading branch information
jatchili committed Aug 13, 2015
1 parent 5e11a89 commit 8472e79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
.hidden { visibility: hidden; }
.displaynone { display: none !important; }

#mysecret[disabled] { border: none; }

#myaddress:empty:before { content: "(no identity set)"; }
table:empty { display: none; }
td.centered { text-align: center; }
Expand Down Expand Up @@ -644,6 +646,7 @@ <h2>disclaimer</h2>
MASTER_SECRET = masterSecret;
document.getElementById("mysecret").value = displayedSecret;
document.getElementById("myaddress").innerHTML = address;
document.getElementById("mysecret").disabled="disabled";
document.getElementById("mysecret").className="hidden";
showEncryptorShower();
}
Expand All @@ -665,6 +668,7 @@ <h2>disclaimer</h2>
document.getElementById("mysecret").value = "";
document.getElementById("myaddress").innerHTML = "";
setIdentity("", "");
document.getElementById("mysecret").disabled=null;
document.getElementById("mysecret").className="";
hideEncryptor();
hideDecryptor();
Expand Down

0 comments on commit 8472e79

Please sign in to comment.