Skip to content

Commit

Permalink
replace chosen: with liszt:
Browse files Browse the repository at this point in the history
  • Loading branch information
brianteeman committed Aug 24, 2016
1 parent 2686df5 commit 535bea0
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions media/jui/js/chosen.jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ This file is generated by `grunt build`, do not edit it by hand.
$ = jQuery;

$.fn.extend({
chosen: function(options) {
liszt: function(options) {
if (!AbstractChosen.browser_is_supported()) {
return this;
}
Expand Down Expand Up @@ -639,8 +639,8 @@ This file is generated by `grunt build`, do not edit it by hand.
};

Chosen.prototype.on_ready = function() {
return this.form_field_jq.trigger("chosen:ready", {
chosen: this
return this.form_field_jq.trigger("liszt:ready", {
liszt: this
});
};

Expand Down Expand Up @@ -687,16 +687,16 @@ This file is generated by `grunt build`, do not edit it by hand.
this.search_results.bind('touchend.chosen', function(evt) {
_this.search_results_touchend(evt);
});
this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
this.form_field_jq.bind("liszt:updated.chosen", function(evt) {
_this.results_update_field(evt);
});
this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
this.form_field_jq.bind("liszt:activate.chosen", function(evt) {
_this.activate_field(evt);
});
this.form_field_jq.bind("chosen:open.chosen", function(evt) {
this.form_field_jq.bind("liszt:open.chosen", function(evt) {
_this.container_mousedown(evt);
});
this.form_field_jq.bind("chosen:close.chosen", function(evt) {
this.form_field_jq.bind("liszt:close.chosen", function(evt) {
_this.input_blur(evt);
});
this.search_field.bind('blur.chosen', function(evt) {
Expand Down Expand Up @@ -883,8 +883,8 @@ This file is generated by `grunt build`, do not edit it by hand.

Chosen.prototype.results_show = function() {
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
this.form_field_jq.trigger("chosen:maxselected", {
chosen: this
this.form_field_jq.trigger("liszt:maxselected", {
liszt: this
});
return false;
}
Expand All @@ -893,8 +893,8 @@ This file is generated by `grunt build`, do not edit it by hand.
this.search_field.focus();
this.search_field.val(this.search_field.val());
this.winnow_results();
return this.form_field_jq.trigger("chosen:showing_dropdown", {
chosen: this
return this.form_field_jq.trigger("liszt:showing_dropdown", {
liszt: this
});
};

Expand All @@ -906,8 +906,8 @@ This file is generated by `grunt build`, do not edit it by hand.
if (this.results_showing) {
this.result_clear_highlight();
this.container.removeClass("chzn-with-drop");
this.form_field_jq.trigger("chosen:hiding_dropdown", {
chosen: this
this.form_field_jq.trigger("liszt:hiding_dropdown", {
liszt: this
});
}
return this.results_showing = false;
Expand Down Expand Up @@ -1036,8 +1036,8 @@ This file is generated by `grunt build`, do not edit it by hand.
high = this.result_highlight;
this.result_clear_highlight();
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
this.form_field_jq.trigger("chosen:maxselected", {
chosen: this
this.form_field_jq.trigger("liszt:maxselected", {
liszt: this
});
return false;
}
Expand Down Expand Up @@ -1133,8 +1133,8 @@ This file is generated by `grunt build`, do not edit it by hand.
no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
no_results_html.find("span").first().html(terms);
this.search_results.append(no_results_html);
return this.form_field_jq.trigger("chosen:no_results", {
chosen: this
return this.form_field_jq.trigger("liszt:no_results", {
liszt: this
});
};

Expand Down

0 comments on commit 535bea0

Please sign in to comment.