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
dd007e1b
authored
2016-09-05 14:34:57 -0500
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Support passing in handlers
Refs: #7621
1 parent
f705da28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/scripts/Upload.js
src/scripts/Upload.js
View file @
dd007e1
...
...
@@ -111,6 +111,10 @@ define(function(require) {
self
.
model
.
set
(
'prechecked'
,
false
);
},
500
);
});
if
(
this
.
model
.
get
(
'handlers'
)
&&
this
.
model
.
get
(
'handlers'
).
uploadStart
!==
undefined
)
{
this
.
model
.
get
(
'handlers'
).
uploadStart
();
}
}
},
fileAdded
:
function
(
flowFile
)
{
...
...
@@ -124,6 +128,10 @@ define(function(require) {
model
.
flowFile
=
flowFile
;
this
.
model
.
get
(
'collection'
).
add
(
model
);
}
if
(
this
.
model
.
get
(
'handlers'
)
&&
this
.
model
.
get
(
'handlers'
).
fileAdded
!==
undefined
)
{
this
.
model
.
get
(
'handlers'
).
fileAdded
(
flowFile
);
}
return
true
;
},
filesAdded
:
function
()
{
...
...
Please
register
or
sign in
to post a comment