从gitee代码库中初始化项目。

This commit is contained in:
2022-01-07 11:15:42 +08:00
parent b46e3d988f
commit a826b26bee
184 changed files with 30423 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
jQuery(document).ready(function($){$(document).on("click","button[class*='upload_']",function(e){e.preventDefault();var $button=$(this);if(file_frame){file_frame.open();return}var file_frame=wp.media.frames.file_frame=wp.media({library:{type:'image'},multiple:false});file_frame.on('select',function(){var attachment=file_frame.state().get('selection').first().toJSON();$button.siblings('input').val(attachment.url).change();});file_frame.open()})});