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
1a60a492
authored
2016-09-05 17:11:11 -0500
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add fileSuccess callback support
Refs: #7621
1 parent
dd007e1b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/scripts/Upload.js
src/scripts/Upload.js
View file @
1a60a49
...
...
@@ -163,6 +163,9 @@ define(function(require) {
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
);
}
});
}
},
...
...
Please
register
or
sign in
to post a comment