Allow single/multiple user select

This commit is contained in:
Dmitriy Zaporozhets 2013-03-13 22:32:04 +02:00
parent 7316055ac8
commit bdcaf21ea7
6 changed files with 12 additions and 7 deletions

View file

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