mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-14 08:58:14 -04:00
Focus active navigation item on popup. Fix #1049.
This commit is contained in:
parent
118c3588d3
commit
3854a019d2
@ -48,6 +48,11 @@
|
|||||||
handler();
|
handler();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$script.ready('om-profile-items', function() {
|
||||||
|
var activeNavLink = document.querySelector('.om-nav-item.om-active > a');
|
||||||
|
if (activeNavLink) activeNavLink.focus();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function tabbableElementsOnly(node) {
|
function tabbableElementsOnly(node) {
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
var profileTemplate = document.getElementById('js-profile-tpl')
|
var profileTemplate = document.getElementById('js-profile-tpl')
|
||||||
.cloneNode(true);
|
.cloneNode(true);
|
||||||
profileTemplate.classList.remove('om-profile-tpl');
|
profileTemplate.removeAttribute('id');
|
||||||
|
|
||||||
var iconForProfileType = {
|
var iconForProfileType = {
|
||||||
'DirectProfile': 'glyphicon-transfer',
|
'DirectProfile': 'glyphicon-transfer',
|
||||||
@ -34,6 +34,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
addProfilesItems(state);
|
addProfilesItems(state);
|
||||||
|
$script.done('om-profile-items');
|
||||||
updateOtherItems(state);
|
updateOtherItems(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user