Expand mobile menu entry by default on mobiles (thanks harding)

This commit is contained in:
Saivann 2015-07-08 13:03:22 -04:00
parent e1ffd67729
commit 3ac6158d37
No known key found for this signature in database
GPG key ID: 5780F5D31B5577B0

View file

@ -400,6 +400,7 @@ var t = null,
}, },
updateMenu = function() { updateMenu = function() {
// Set active nodes in the menu for the new platform. // Set active nodes in the menu for the new platform.
addClass(walletMenu.getElementsByTagName('UL')[0], 'menutap');
for (var i = 0, nds = walletMenu.getElementsByTagName('A'), n = nds.length; i < n; i++) { for (var i = 0, nds = walletMenu.getElementsByTagName('A'), n = nds.length; i < n; i++) {
nds[i].removeAttribute('data-active'); nds[i].removeAttribute('data-active');
removeClass(nds[i].parentNode, 'active'); removeClass(nds[i].parentNode, 'active');
@ -407,8 +408,12 @@ var t = null,
if (platform != 'default') { if (platform != 'default') {
t.setAttribute('data-active', '1'); t.setAttribute('data-active', '1');
addClass(t.parentNode, 'active'); addClass(t.parentNode, 'active');
addClass(t.parentNode, 'hover');
var p = t.parentNode.parentNode.parentNode; var p = t.parentNode.parentNode.parentNode;
if (p.nodeName == 'LI') addClass(p, 'active'); if (p.nodeName == 'LI') {
addClass(p, 'active');
addClass(p, 'hover');
}
} }
}, },
updateWallets = function() { updateWallets = function() {