Files
tysweld.com/wp-content/plugins/polylang-pro/js/build/metabox-autocomplete.min.js
2025-02-24 22:33:42 +01:00

1 line
897 B
JavaScript

"use strict";var __webpack_require__={d:(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},__webpack_exports__={};function initMetaboxAutoComplete(){jQuery(".tr_lang").each((function(){var e=jQuery(this).attr("id").substring(8),t=jQuery(this).parent().parent().siblings(".pll-edit-column");jQuery(this).autocomplete({minLength:0,source:ajaxurl+"?action=pll_posts_not_translated&post_language="+jQuery(".post_lang_choice").val()+"&translation_language="+e+"&post_type="+jQuery("#post_type").val()+"&_pll_nonce="+jQuery("#_pll_nonce").val(),select:function(r,n){jQuery("#htr_lang_"+e).val(n.item.id),t.html(n.item.link)}}),jQuery(this).on("blur",(function(){jQuery(this).val()||(jQuery("#htr_lang_"+e).val(0),t.html(t.siblings(".hidden").children().clone()))}))}))}