CoreFiles by mySites.guru
joomla-chosen.min.js1 lines, 1,970 bytes, from Joomla_4.0.0-alpha5-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha3
md5
e22a087c5d3136e7a19e1997f723432d
sha1
fb5e81d910bf6af224d878561f88a6f02e489bec
sha256
a754d75c26bd9607e8525040778490edf9da76ece18aafa8b783660a637d5d49
!function(t,o,e){t.fn.jchosen=function(o){return e.browser_is_supported()?this.each(function(e){var s,r;r=(s=t(this)).data("chosen"),"destroy"!==o?r instanceof JoomlaChosen||s.data("chosen",new JoomlaChosen(this,o)):r instanceof JoomlaChosen&&r.destroy()}):this},JoomlaChosen=function(e){var s={}.hasOwnProperty;function r(){return _ref=r.__super__.constructor.apply(this,arguments),_ref}return function(t,o){for(var e in o)s.call(o,e)&&(t[e]=o[e]);function r(){this.constructor=t}r.prototype=o.prototype,t.prototype=new r,t.__super__=o.prototype}(r,o),r.prototype.setup=function(){var t;return t=r.__super__.setup.apply(this,arguments),this.allow_custom_value=this.form_field_jq.hasClass("chosen-custom-value")||this.options.allow_custom_value,t},r.prototype.set_default_text=function(){return this.custom_group_text=this.form_field.getAttribute("data-custom_group_text")||this.options.custom_group_text||"Custom Value",r.__super__.set_default_text.apply(this,arguments)},r.prototype.result_select=function(o){var e,s,i;return this.result_highlight||this.is_multiple||!this.allow_custom_value?r.__super__.result_select.apply(this,arguments):(i=this.search_field.val(),e=this.add_unique_custom_group(),s=t('<option value="'+i+'">'+i+"</option>"),e.append(s),this.form_field_jq.append(e),this.form_field.options[this.form_field.options.length-1].selected=!0,o.metaKey||this.results_hide(),this.results_build())},r.prototype.find_custom_group=function(){var o,e,s,r,i;for(s=0,r=(i=t("optgroup",this.form_field)).length;s<r;s++)(e=i[s]).getAttribute("label")===this.custom_group_text&&(o=e);return o},r.prototype.add_unique_custom_group=function(){var o;return(o=this.find_custom_group())||(o=t('<optgroup label="'+this.custom_group_text+'"></optgroup>')),t(o)},r.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field_jq.css("width")||this.form_field.offsetWidth+"px"},r}()}(jQuery,document.Chosen,document.AbstractChosen);

The same content is in 7 releases, Joomla 4.0.0-alpha5 to 4.0.0-alpha11. See them all, or every version of this file.