Merge pull request #1594 from harding/fix-accidental-hiding

Wallets: fix accidental wallet hiding on category change
This commit is contained in:
Will Binns 2017-05-10 14:16:23 -06:00 committed by GitHub
commit 95c7a19891

View file

@ -389,6 +389,7 @@ function walletListener(e) {
if (isMobile()) { if (isMobile()) {
var p = document.getElementById('walletsmobile'); var p = document.getElementById('walletsmobile');
t = t.cloneNode(true); t = t.cloneNode(true);
t.id = 'inline_wallet_box';
p.innerHTML = ''; p.innerHTML = '';
p.appendChild(t); p.appendChild(t);
scrollToNode(p); scrollToNode(p);
@ -467,6 +468,7 @@ function walletShowPlatform(platform) {
for (var i = 0, nds = document.getElementById('walletsswitch').childNodes, n = nds.length; i < n; i++) { for (var i = 0, nds = document.getElementById('walletsswitch').childNodes, n = nds.length; i < n; i++) {
if (nds[i].nodeType !== 1) continue; if (nds[i].nodeType !== 1) continue;
var id = nds[i].id.split('-')[1]; var id = nds[i].id.split('-')[1];
// for wallets with multiple listings, only show one instance per view
if (document.getElementById('wallet-' + id)) continue; if (document.getElementById('wallet-' + id)) continue;
var nd = null; var nd = null;
for (var ii = 0, nn = platforms.length; ii < nn; ii++) { for (var ii = 0, nn = platforms.length; ii < nn; ii++) {