Skip to content
This repository has been archived by the owner on Jan 8, 2021. It is now read-only.

Commit

Permalink
Update add-playlist-option.js.coffee
Browse files Browse the repository at this point in the history
Select2 seems to have changed the way dynamic option creation works. This handles the change.
  • Loading branch information
bkeese authored Jan 16, 2019
1 parent 86b61ed commit 61bed23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/add-playlist-option.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ add_success = false
select_element.prepend(new Option(addnew))

getSearchTerm = () ->
return $("#post_playlist_id").data('select2').$dropdown.find("input").val();
return $('span.select2-search--dropdown input').val();

matchWithNew = (params, data) ->
term = params.term || ''
Expand Down

0 comments on commit 61bed23

Please sign in to comment.