diff --git a/chat/content/otr-add-fingerprint.js b/chat/content/otr-add-fingerprint.js
index 901a3f9b3f..3e9eb5f5dd 100644
--- a/chat/content/otr-add-fingerprint.js
+++ b/chat/content/otr-add-fingerprint.js
@@ -70,7 +70,7 @@ var otrAddFinger = {
this.fingerError.hidden = true;
}
- document.documentElement.getButton("accept").disabled =
+ document.getElementById("otrAddFingerDialog").getButton("accept").disabled =
input.value && !input.validity.valid;
this.keyCount.value = `${hex.length}/40`;
diff --git a/chat/content/otr-add-fingerprint.xul b/chat/content/otr-add-fingerprint.xul
index 4a6f49ae32..29f1e7e91b 100644
--- a/chat/content/otr-add-fingerprint.xul
+++ b/chat/content/otr-add-fingerprint.xul
@@ -6,59 +6,60 @@
-
+
-
+
diff --git a/chat/content/otr-auth.js b/chat/content/otr-auth.js
index 90d3b35c42..8bd394c144 100644
--- a/chat/content/otr-auth.js
+++ b/chat/content/otr-auth.js
@@ -173,7 +173,9 @@ var otrAuth = {
},
oninput(e) {
- document.documentElement.getButton("accept").disabled = !e.value;
+ document
+ .getElementById("otrAuthDialog")
+ .getButton("accept").disabled = !e.value;
},
how() {
diff --git a/chat/content/otr-auth.xul b/chat/content/otr-auth.xul
index 466cea8d65..598a83cd18 100644
--- a/chat/content/otr-auth.xul
+++ b/chat/content/otr-auth.xul
@@ -6,89 +6,89 @@
-
-
+
+
-
-
-
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
+
+
+
-
-
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/chat/content/otr-finger.xul b/chat/content/otr-finger.xul
index ea4f3d10c3..6afd1035bd 100644
--- a/chat/content/otr-finger.xul
+++ b/chat/content/otr-finger.xul
@@ -5,50 +5,51 @@
-
+
-
+
-
-
-
+
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+