mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
fix admin user select
This commit is contained in:
parent
49e23062ee
commit
4bc57c43d2
@ -12,8 +12,6 @@ Application.Directives.directive 'selectMember', [ 'Diacritics', 'Member', (Diac
|
||||
{
|
||||
restrict: 'E'
|
||||
templateUrl: '<%= asset_path "shared/_member_select.html" %>'
|
||||
scope:
|
||||
subscription: '@'
|
||||
link: (scope, element, attributes) ->
|
||||
scope.autoCompleteName = (nameLookup) ->
|
||||
unless nameLookup
|
||||
@ -22,8 +20,8 @@ Application.Directives.directive 'selectMember', [ 'Diacritics', 'Member', (Diac
|
||||
asciiName = Diacritics.remove(nameLookup)
|
||||
|
||||
q = { query: asciiName }
|
||||
if scope.subscription
|
||||
q['subscription'] = scope.subscription
|
||||
if attributes.subscription
|
||||
q['subscription'] = attributes.subscription
|
||||
|
||||
Member.search q, (users) ->
|
||||
scope.matchingMembers = users
|
||||
|
Loading…
x
Reference in New Issue
Block a user