mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-21 15:54:22 +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'
|
restrict: 'E'
|
||||||
templateUrl: '<%= asset_path "shared/_member_select.html" %>'
|
templateUrl: '<%= asset_path "shared/_member_select.html" %>'
|
||||||
scope:
|
|
||||||
subscription: '@'
|
|
||||||
link: (scope, element, attributes) ->
|
link: (scope, element, attributes) ->
|
||||||
scope.autoCompleteName = (nameLookup) ->
|
scope.autoCompleteName = (nameLookup) ->
|
||||||
unless nameLookup
|
unless nameLookup
|
||||||
@ -22,8 +20,8 @@ Application.Directives.directive 'selectMember', [ 'Diacritics', 'Member', (Diac
|
|||||||
asciiName = Diacritics.remove(nameLookup)
|
asciiName = Diacritics.remove(nameLookup)
|
||||||
|
|
||||||
q = { query: asciiName }
|
q = { query: asciiName }
|
||||||
if scope.subscription
|
if attributes.subscription
|
||||||
q['subscription'] = scope.subscription
|
q['subscription'] = attributes.subscription
|
||||||
|
|
||||||
Member.search q, (users) ->
|
Member.search q, (users) ->
|
||||||
scope.matchingMembers = users
|
scope.matchingMembers = users
|
||||||
|
Loading…
x
Reference in New Issue
Block a user