Skip to content

Commit

Permalink
Merge pull request #1832 from jhawthorn/variant_autocomplete_missing_…
Browse files Browse the repository at this point in the history
…paren

Fix missing close paren in variantAutocomplete
  • Loading branch information
jhawthorn authored Apr 7, 2017
2 parents 7678e7e + b685051 commit 09dc76d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ $.fn.variantAutocomplete = (searchOptions = {}) ->

formatResult: formatVariantResult
formatSelection: (variant, container, escapeMarkup) ->
if !!variant.options_text
Select2.util.escapeMarkup("#{variant.name} (#{variant.options_text}")
if variant.options_text
Select2.util.escapeMarkup("#{variant.name} (#{variant.options_text})")
else
Select2.util.escapeMarkup(variant.name)

0 comments on commit 09dc76d

Please sign in to comment.