芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.1/system/js/fields/tag.min.js
jQuery(document).ready((function(e){if(Joomla.getOptions("field-tag-custom")){var t=Joomla.getOptions("field-tag-custom"),i="#new#";e(t.selector+"_chosen input").keyup((function(l){var r;if(this.value&&this.value.length>=t.minTermLength&&(13===l.which||188===l.which)){var o=e(t.selector+"_chosen").find("li.active-result.highlighted").first();if(13===l.which&&""!==o.text()){var s=i+o.text();e(t.selector+" option").filter((function(){return e(this).val()==s})).remove(),(r=e(t.selector+" option").filter((function(){return e(this).html()==o.text()}))).attr("selected","selected")}else{var n=this.value;if(""!==(r=e(t.selector+" option").filter((function(){return e(this).html()==n}))).text())r.attr("selected","selected");else{var c=e("
");c.text(this.value).val(i+this.value),c.attr("selected","selected"),e(t.selector).append(c)}}this.value="",e(t.selector).trigger("chosen:updated"),l.preventDefault()}}))}}));