Allow single/multiple user select
This commit is contained in:
parent
7316055ac8
commit
bdcaf21ea7
6 changed files with 12 additions and 7 deletions
|
@ -16,7 +16,7 @@ $ ->
|
|||
|
||||
$('.ajax-users-select').select2
|
||||
placeholder: "Search for a user"
|
||||
multiple: true
|
||||
multiple: $('.ajax-users-select').hasClass('multiselect')
|
||||
minimumInputLength: 0
|
||||
ajax: # instead of writing the function to execute the request we use Select2's convenient helper
|
||||
url: "/api/v3/users.json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue