Skip to content

Commit ea88794

Browse files
committed
Merge remote-tracking branch 'origin/V4.0' into V5
2 parents aa0cad6 + bbf3a52 commit ea88794

File tree

258 files changed

+43
-30796
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+43
-30796
lines changed

publiccms-parent/publiccms/src/main/resources/templates/admin/cmsTemplate/demo/content/content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ <h1 data-diy="content" data-diy-id="${(content.id)!}"><a href="${content.url!}">
6767
<#if content.hasFiles>
6868
<@cms.contentFileList contentId=content.id fileTypes='video,audio,document,other'>
6969
<#list page.list as file>
70-
<p><a href="${site.dynamicPath}content/fileRedirect?id=${file.id}" download="${(file.description)!}">${file?counter}. ${(file.description)!}</a></p>
70+
<p><a href="${site.dynamicPath}content/fileRedirect?id=${file.id}&contentId=${content.id}" download="${(file.description)!}">${file?counter}. ${(file.description)!}</a></p>
7171
</#list>
7272
</@cms.contentFileList>
7373
</#if>

publiccms-parent/publiccms/src/main/resources/templates/admin/cmsTemplate/demo/content/staticContent.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ <h1 data-diy="content" data-diy-id="${(content.id)!}"><a href="${content.url!}">
6060
<#if content.hasFiles>
6161
<@cms.contentFileList contentId=content.id fileTypes='video,audio,document,other'>
6262
<#list page.list as file>
63-
<p><a href="${site.dynamicPath}content/fileRedirect?id=${file.id}" download="${(file.description)!}">${file?counter}. ${(file.description)!}</a></p>
63+
<p><a href="${site.dynamicPath}content/fileRedirect?id=${file.id}&contentId=${content.id}" download="${(file.description)!}">${file?counter}. ${(file.description)!}</a></p>
6464
</#list>
6565
</@cms.contentFileList>
6666
</#if>

publiccms-parent/publiccms/src/main/webapp/resource/plugins/ueditor/dialogs/attachment/attachment.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
label: lang.uploadSelectFile
162162
},
163163
server: actionUrl,
164+
headers: editor.getOpt('headers') || {},
164165
fileVal: editor.getOpt('fileFieldName'),
165166
duplicate: true,
166167
fileSingleSizeLimit: fileMaxSize,
@@ -488,7 +489,7 @@
488489

489490
uploader.on('uploadBeforeSend', function (file, data, header) {
490491
//这里可以通过data对象添加POST参数
491-
header['X_Requested_With'] = 'XMLHttpRequest';
492+
header['X-Requested-With'] = 'XMLHttpRequest';
492493
});
493494

494495
uploader.on('uploadProgress', function (file, percentage) {
@@ -635,14 +636,15 @@
635636
this.isLoadingData = true;
636637
ajax.request(editor.getActionUrl(editor.getOpt('fileManagerActionName')), {
637638
timeout: 100000,
639+
'headers': editor.options.headers || {},
638640
data: utils.extend({
639641
start: this.listIndex,
640642
size: this.listSize
641643
}, editor.queryCommandValue('serverparam')),
642644
method: 'get',
643645
onsuccess: function (r) {
644646
try {
645-
var json = eval('(' + r.responseText + ')');
647+
var json = utils.str2json(r.responseText);
646648
if (json.state == 'SUCCESS') {
647649
_this.pushData(json.list);
648650
_this.listIndex = parseInt(json.start) + parseInt(json.list.length);

publiccms-parent/publiccms/src/main/webapp/resource/plugins/ueditor/dialogs/charts/chart.config.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

publiccms-parent/publiccms/src/main/webapp/resource/plugins/ueditor/dialogs/charts/charts.css

Lines changed: 0 additions & 165 deletions
This file was deleted.

publiccms-parent/publiccms/src/main/webapp/resource/plugins/ueditor/dialogs/charts/charts.html

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)