diff options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/js/index.js b/src/js/index.js index 748a2ba..04559d1 100644 --- a/src/js/index.js +++ b/src/js/index.js | |||
@@ -67,6 +67,7 @@ | |||
67 | DOM.privateKeyToggle = $(".private-key-toggle"); | 67 | DOM.privateKeyToggle = $(".private-key-toggle"); |
68 | DOM.languages = $(".languages a"); | 68 | DOM.languages = $(".languages a"); |
69 | DOM.qrContainer = $(".qr-container"); | 69 | DOM.qrContainer = $(".qr-container"); |
70 | DOM.qrHider = DOM.qrContainer.find(".qr-hider"); | ||
70 | DOM.qrImage = DOM.qrContainer.find(".qr-image"); | 71 | DOM.qrImage = DOM.qrContainer.find(".qr-image"); |
71 | DOM.qrHint = DOM.qrContainer.find(".qr-hint"); | 72 | DOM.qrHint = DOM.qrContainer.find(".qr-hint"); |
72 | DOM.showQrEls = $("[data-show-qr]"); | 73 | DOM.showQrEls = $("[data-show-qr]"); |
@@ -946,7 +947,10 @@ | |||
946 | var size = 130; | 947 | var size = 130; |
947 | DOM.qrImage.qrcode({width: size, height: size, text: content}); | 948 | DOM.qrImage.qrcode({width: size, height: size, text: content}); |
948 | if (!showQr) { | 949 | if (!showQr) { |
949 | DOM.qrImage.addClass("hidden"); | 950 | DOM.qrHider.addClass("hidden"); |
951 | } | ||
952 | else { | ||
953 | DOM.qrHider.removeClass("hidden"); | ||
950 | } | 954 | } |
951 | DOM.qrContainer.removeClass("hidden"); | 955 | DOM.qrContainer.removeClass("hidden"); |
952 | } | 956 | } |
@@ -959,7 +963,7 @@ | |||
959 | 963 | ||
960 | function toggleQr() { | 964 | function toggleQr() { |
961 | showQr = !showQr; | 965 | showQr = !showQr; |
962 | DOM.qrImage.toggleClass("hidden"); | 966 | DOM.qrHider.toggleClass("hidden"); |
963 | DOM.qrHint.toggleClass("hidden"); | 967 | DOM.qrHint.toggleClass("hidden"); |
964 | } | 968 | } |
965 | 969 | ||