Commit 139c255a authored by Phil Hughes's avatar Phil Hughes Committed by Jacob Schatz

Fixed JS error that was failing the builds

parent cf0c6e87
......@@ -2,6 +2,7 @@ class @UsersSelect
constructor: (currentUser) ->
@usersPath = "/autocomplete/users.json"
@userPath = "/autocomplete/users/:id.json"
if currentUser?
@currentUser = JSON.parse(currentUser)
$('.js-user-search').each (i, dropdown) =>
......@@ -20,7 +21,7 @@ class @UsersSelect
$value = $block.find('.value')
$loading = $block.find('.block-loading').fadeOut()
$block.on('click','.js-assign-yourself' , (e) =>
$block.on('click', '.js-assign-yourself', (e) =>
e.preventDefault()
assignTo(@currentUser.id)
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment