feat(submit): add user media library
This commit is contained in:
@@ -446,7 +446,7 @@
|
||||
type: 'string',
|
||||
source: 'attribute',
|
||||
selector: '.file-download-btn',
|
||||
attribute: 'data-download-file',
|
||||
attribute: 'data-aksrt-file-id',
|
||||
default: 0,
|
||||
},
|
||||
url: {
|
||||
@@ -921,7 +921,7 @@
|
||||
href: url,
|
||||
};
|
||||
if (file_id) {
|
||||
a_attr['data-download-file'] = file_id;
|
||||
a_attr['data-aksrt-file-id'] = file_id;
|
||||
}
|
||||
|
||||
var desc_lists = desc.map(function (item) {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user