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