diff --git a/media/jui/js/chosen.jquery.js b/media/jui/js/chosen.jquery.js index d2deae767e7fa..c8e9053089592 100755 --- a/media/jui/js/chosen.jquery.js +++ b/media/jui/js/chosen.jquery.js @@ -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; } @@ -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 }); }; @@ -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) { @@ -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; } @@ -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 }); }; @@ -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; @@ -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; } @@ -1133,8 +1133,8 @@ This file is generated by `grunt build`, do not edit it by hand. no_results_html = $('
  • ' + this.results_none_found + ' ""
  • '); 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 }); };