mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-01-22 23:08:13 -05:00
Select active profile in popup menu by default. Fix #24.
This commit is contained in:
parent
811be9102f
commit
5e91760f35
@ -13,6 +13,8 @@ jQuery(document).on 'keydown', (e) ->
|
|||||||
items = jQuery('.popup-menu-nav > li:not(.ng-hide) > a')
|
items = jQuery('.popup-menu-nav > li:not(.ng-hide) > a')
|
||||||
|
|
||||||
i = items.index(jQuery(e.target).closest('a'))
|
i = items.index(jQuery(e.target).closest('a'))
|
||||||
|
if i == -1
|
||||||
|
i = items.index(jQuery('.popup-menu-nav > li.active > a'))
|
||||||
switch e.keyCode
|
switch e.keyCode
|
||||||
when 38
|
when 38
|
||||||
i--
|
i--
|
||||||
|
Loading…
Reference in New Issue
Block a user