Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
O2OA
Commits
2e3ddeb8
Commit
2e3ddeb8
authored
3 years ago
by
胡起
Browse files
Options
Download
Plain Diff
Merge branch 'cherry-pick-
beae335c
' into 'release'
修复附件上传问题 See merge request o2oa/o2oa!5913
parents
46d004ac
ecaff9ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
o2web/source/o2_core/o2/widget/AttachmentController.js
+4
-1
o2web/source/o2_core/o2/widget/AttachmentController.js
with
4 additions
and
1 deletion
+4
-1
o2web/source/o2_core/o2/widget/AttachmentController.js
+
4
-
1
View file @
2e3ddeb8
...
...
@@ -764,6 +764,7 @@ o2.widget.AttachmentController = o2.widget.ATTER = new Class({
},
uploadAttachment
:
function
(
e
,
node
,
files
){
debugger
;
if
(
this
.
module
)
this
.
module
.
uploadAttachment
(
e
,
node
,
files
);
},
doUploadAttachment
:
function
(
obj
,
action
,
invokeUrl
,
parameter
,
finish
,
every
,
beforeUpload
,
multiple
,
accept
,
size
,
failureEvery
,
files
){
...
...
@@ -1099,7 +1100,9 @@ o2.widget.AttachmentController = o2.widget.ATTER = new Class({
this
.
uploadFileAreaNode
.
set
(
"
html
"
,
html
);
this
.
fileUploadNode
=
this
.
uploadFileAreaNode
.
getFirst
();
this
.
fileUploadNode
.
addEvent
(
"
change
"
,
uploadChange
);
this
.
fileUploadNode
.
addEvent
(
"
change
"
,
function
(){
uploadChange
();
});
}
this
.
fileUploadNode
.
set
(
"
accept
"
,
accept
||
"
*/*
"
);
this
.
fileUploadNode
.
set
(
"
multiple
"
,
(
multiple
!==
false
));
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help