fix user keyboard navigation
parent
44c975e3ae
commit
682f6492b3
|
@ -84,6 +84,7 @@ class LightboxKeyboardNavigationService extends taiga.Service
|
||||||
prev.addClass('active')
|
prev.addClass('active')
|
||||||
|
|
||||||
init: ($el) ->
|
init: ($el) ->
|
||||||
|
@stop()
|
||||||
docEl = angular.element(document)
|
docEl = angular.element(document)
|
||||||
docEl.on "keydown.keyboard-navigation", (event) =>
|
docEl.on "keydown.keyboard-navigation", (event) =>
|
||||||
code = if event.keyCode then event.keyCode else event.which
|
code = if event.keyCode then event.keyCode else event.which
|
||||||
|
@ -486,7 +487,7 @@ WatchersLightboxDirective = ($repo, lightboxService, lightboxKeyboardNavigationS
|
||||||
# and without now watched users.
|
# and without now watched users.
|
||||||
getFilteredUsers = (text="") ->
|
getFilteredUsers = (text="") ->
|
||||||
_filterUsers = (text, user) ->
|
_filterUsers = (text, user) ->
|
||||||
if _.find(selectedItem.watchers, (x) -> x == user.id)
|
if selectedItem && _.find(selectedItem.watchers, (x) -> x == user.id)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
username = user.full_name_display.toUpperCase()
|
username = user.full_name_display.toUpperCase()
|
||||||
|
|
Loading…
Reference in New Issue