Permalink
Browse files

removed href from create option link

  • Loading branch information...
1 parent e0efb33 commit b9265da3984528a062f4937698fe9493d0f96fc2 @koenpunt committed Oct 25, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 coffee/chosen.jquery.coffee
  2. +1 −1 coffee/chosen.proto.coffee
@@ -409,7 +409,7 @@ class Chosen extends AbstractChosen
@search_results.append no_results_html
show_create_option: (terms) ->
- create_option_html = $('<li class="create-option active-result"><a href="javascript:void(0);">' + @create_option_text + '</a>: "' + terms + '"</li>')
+ create_option_html = $('<li class="create-option active-result"><a>' + @create_option_text + '</a>: "' + terms + '"</li>')
@search_results.append create_option_html
create_option_clear: ->
@@ -12,7 +12,7 @@ class @Chosen extends AbstractChosen
@multi_temp = new Template('<ul class="chosen-choices"><li class="search-field"><input type="text" value="#{default}" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>')
@no_results_temp = new Template('<li class="no-results">' + @results_none_found + ' "<span>#{terms}</span>".</li>')
@new_option_temp = new Template('<option value="#{value}">#{text}</option>')
- @create_option_temp = new Template('<li class="create-option active-result"><a href="javascript:void(0);">#{text}</a>: "#{terms}"</li>')
+ @create_option_temp = new Template('<li class="create-option active-result"><a>#{text}</a>: "#{terms}"</li>')
set_up_html: ->
container_classes = ["chosen-container"]

0 comments on commit b9265da

Please sign in to comment.