Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
frontend-uploads
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ccd3127c
authored
2016-09-05 21:42:24 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Remove ownerContent handling from fileSuccess.
Refs: #7621
1 parent
e30e3209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
src/scripts/Upload.js
src/scripts/Upload.js
View file @
ccd3127
...
...
@@ -120,14 +120,9 @@ define(function(require) {
resultData
:
message
,
});
console
.
log
(
'UPLOAD COMPLETE'
,
flowFile
.
flowObj
.
ownerContent
);
flowFile
.
flowObj
.
ownerContent
.
set
(
'statusId'
,
'CTNT_AVAILABLE'
);
flowFile
.
flowObj
.
ownerContent
.
save
(
function
()
{
console
.
log
(
'MARKED'
,
flowFile
.
flowObj
.
ownerContent
,
' AVAILABLE'
);
if
(
this
.
model
.
get
(
'handlers'
)
&&
this
.
model
.
get
(
'handlers'
).
fileSuccess
!==
undefined
)
{
this
.
model
.
get
(
'handlers'
).
fileSuccess
(
flowFile
);
}
});
if
(
this
.
model
.
get
(
'handlers'
)
&&
this
.
model
.
get
(
'handlers'
).
fileSuccess
!==
undefined
)
{
this
.
model
.
get
(
'handlers'
).
fileSuccess
(
flowFile
);
}
}
},
fileError
:
function
(
flowFile
,
message
,
chunk
)
{
...
...
Please
register
or
sign in
to post a comment