feat(submit): add user media library
This commit is contained in:
@@ -1364,17 +1364,6 @@ _win.bd.on('click', '.switch-iframe', function () {
|
||||
_this.addClass('active').siblings().removeClass('active');
|
||||
});
|
||||
|
||||
//下载文件
|
||||
_win.bd.on('click', '.file-download-btn', function () {
|
||||
var _this = jQuery(this);
|
||||
var id = _this.attr('data-download-file');
|
||||
var nonce = _this.attr('download-nonce');
|
||||
_this.attr('target', '_blank');
|
||||
if (!id) return;
|
||||
var href = _win.ajax_url + '?action=download_file&file=' + id + '&nonce=' + nonce;
|
||||
_this.attr('target', '_blank').removeAttr('data-download-file').attr('href', href);
|
||||
});
|
||||
|
||||
//文章古腾堡TAB
|
||||
_win.bd.on('click', '.post-tab-toggle', function () {
|
||||
var _this = jQuery(this);
|
||||
|
||||
Reference in New Issue
Block a user