From f21f495948f2d962a8be2864a2e302e483dfc8e8 Mon Sep 17 00:00:00 2001 From: Saivann Date: Wed, 8 Jul 2015 00:12:15 -0400 Subject: [PATCH] Avoid updating wallets when de-selecting a menu entry --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 3941f070..022c3518 100644 --- a/js/main.js +++ b/js/main.js @@ -340,7 +340,7 @@ function walletMenuListener(e) { var t = getEventTarget(e), walletSelectPlatform = function() { if (t.nodeName != 'A') return; - walletShowPlatform(t.getAttribute('data-walletcompat')); + if (t.parentNode.className.indexOf('active') !== -1) walletShowPlatform(t.getAttribute('data-walletcompat')); if (isMobile() && t.parentNode.getElementsByTagName('UL').length == 0) scrollToNode(document.getElementById('wallets')); }; // Pre-process events and call appropriate function.