Select active profile in popup menu by default. Fix #24.

This commit is contained in:
FelisCatus 2014-12-27 19:23:17 +08:00
parent 811be9102f
commit 5e91760f35

View File

@ -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--