jQuery(document).ready(function($){var $table=$(".edit-tags-php.taxonomy-asd_map_category").find("table.wp-list-table");$table.find('span.view a[href*="/map_category/general/"]').parent().parent().find("span.delete").remove();$table.find(".row-actions span.view").remove();var $editcheck=jQuery(".check-column");if($editcheck.find("label").text()=="Select General"){$editcheck.find("input").remove();$editcheck.find("label").remove();}var $checkbox=$("#asd_map_categorychecklist");if($checkbox.length){var atLeastOneIsChecked=$checkbox.find(":checkbox:checked").length>0;if(!atLeastOneIsChecked){$checkbox.find("label").each(function(){if($(this).text()==" General"){$(this).find("input").prop("checked",true);}});}}var $iconDiv=$('[data-name="asd_feature_place_icon"]');if($iconDiv.length==0){$iconDiv=$('[data-field_name="asd_feature_place_icon"]');}$iconDiv.append('
');var $iconPreview=$("#asd-icon-preview");var $link=$iconDiv.find("select").val();var $icons=$iconDiv.find("option");$icons.each(function(){var $val=$(this).val();var $text=$(this).text();if($val!=""){$(this).html(''+$val+' '+$text);}else{$(this).html(''+$val+' '+$text);}});if($link=="custom"){$link=$("#acf-asd_feature_map_upload_icon").find("img.acf-image-image").attr("src");$iconPreview.html('map icon');}else{$iconPreview.html('map icon');}$iconDiv.find("select").change(function(){var $link=$(this).val();if($link=="custom"){$link=$('[data-name="asd_feature_map_upload_icon"]').find('img[data-name="image"]').attr("src");if($link){$("#asd-icon-preview").html('map icon');}else{$("#asd-icon-preview").html('map icon');}}if($link!=""){$("#asd-icon-preview").html('map icon');}else{$("#asd-icon-preview").html('map icon');}});});