diff --git a/coffee/chosen.jquery.coffee b/coffee/chosen.jquery.coffee index f5127158390..4ffb60165ac 100644 --- a/coffee/chosen.jquery.coffee +++ b/coffee/chosen.jquery.coffee @@ -43,9 +43,9 @@ class Chosen extends AbstractChosen @container.width this.container_width() if @is_multiple - @container.html this.get_multi_template() + @container.html this.get_multi_html() else - @container.html this.get_single_template() + @container.html this.get_single_html() @form_field_jq.hide().after @container @dropdown = @container.find('div.chosen-drop').first() @@ -430,7 +430,7 @@ class Chosen extends AbstractChosen this.result_do_highlight do_high if do_high? no_results: (terms) -> - no_results_html = this.get_no_results_template(terms) + no_results_html = this.get_no_results_html(terms) @search_results.append no_results_html @form_field_jq.trigger("chosen:no_results", {chosen:this}) diff --git a/coffee/chosen.proto.coffee b/coffee/chosen.proto.coffee index 7aded1218d4..00dc6052b3b 100644 --- a/coffee/chosen.proto.coffee +++ b/coffee/chosen.proto.coffee @@ -7,7 +7,7 @@ class @Chosen extends AbstractChosen super() # HTML Templates - @no_results_temp = new Template(this.get_no_results_template('#{terms}')) + @no_results_temp = new Template(this.get_no_results_html('#{terms}')) set_up_html: -> container_classes = ["chosen-container"] @@ -27,9 +27,9 @@ class @Chosen extends AbstractChosen @container.setStyle(width: this.container_width()) if @is_multiple - @container.update this.get_multi_template() + @container.update this.get_multi_html() else - @container.update this.get_single_template() + @container.update this.get_single_html() @form_field.hide().insert({ after: @container }) @dropdown = @container.down('div.chosen-drop') diff --git a/coffee/lib/abstract-chosen.coffee b/coffee/lib/abstract-chosen.coffee index 36f1c202908..bf0e785a1ae 100644 --- a/coffee/lib/abstract-chosen.coffee +++ b/coffee/lib/abstract-chosen.coffee @@ -333,7 +333,7 @@ class AbstractChosen tmp.appendChild(element) tmp.innerHTML - get_single_template: -> + get_single_html: -> """ #{@default_text} @@ -347,7 +347,7 @@ class AbstractChosen """ - get_multi_template: -> + get_multi_html: -> """