Avoid updating wallets when de-selecting a menu entry

This commit is contained in:
Saivann 2015-07-08 00:12:15 -04:00
parent be18e564c9
commit f21f495948
No known key found for this signature in database
GPG key ID: 5780F5D31B5577B0

View file

@ -340,7 +340,7 @@ function walletMenuListener(e) {
var t = getEventTarget(e), var t = getEventTarget(e),
walletSelectPlatform = function() { walletSelectPlatform = function() {
if (t.nodeName != 'A') return; 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')); if (isMobile() && t.parentNode.getElementsByTagName('UL').length == 0) scrollToNode(document.getElementById('wallets'));
}; };
// Pre-process events and call appropriate function. // Pre-process events and call appropriate function.