!function(){"use strict";function a(){var a=jQuery(this).val(),d=jQuery("#taxonomy-translation"),e=jQuery(".wpml-loading-taxonomy:first").clone();d.html(""),d.append(e),d.find(".wpml-loading-taxonomy:first").show(),c(a),TaxonomyTranslation.classes.taxonomy=new TaxonomyTranslation.models.Taxonomy({taxonomy:a}),TaxonomyTranslation.mainView=new TaxonomyTranslation.views.TaxonomyView({model:TaxonomyTranslation.classes.taxonomy},{sync:b()})}function b(){return window.location.search.substring(1).indexOf("&sync=1")>-1}function c(a){jQuery(".wrap .icl_tt_main_bottom").remove(),jQuery.ajax({type:"post",url:ajaxurl,dataType:"json",data:{action:"wcml_update_term_translated_warnings",taxonomy:a,show_sync:!0},success:function(a){jQuery(".tax-product-attributes").removeAttr("title"),jQuery(".tax-product-attributes i.otgs-ico-warning").remove(),a.hide||(jQuery(".tax-product-attributes").attr("title",jQuery("#warn_title").val()),jQuery(".tax-product-attributes").append('')),a.bottom_html&&jQuery(".wcml-wrap .wrap").append('
'+a.bottom_html+"
")}})}var d=jQuery("#wcml_product_attributes");jQuery(document).ready(function(){d.on("change",a)})}();