mirror of
https://gh.wpcy.net/https://github.com/presscustomizr/hueman.git
synced 2026-05-03 01:45:53 +08:00
1 line
No EOL
544 B
JavaScript
1 line
No EOL
544 B
JavaScript
jQuery(document).ready(function(a){function b(){a("#format-audio,#format-aside,#format-chat,#format-gallery,#format-image,#format-link,#format-quote,#format-status,#format-video").hide()}if(a("#post-formats-select").length){b();var c=["audio","aside","chat","gallery","image","link","quote","status","video"],d=a("input[name='post_format']:checked").val();"-1"!=jQuery.inArray(d,c)&&a("#format-"+d).show(),a("input[name='post_format']:radio").change(function(){b(),"-1"!=jQuery.inArray(a(this).val(),c)&&a("#format-"+a(this).val()).show()})}}); |