dd007e1b by Ean Schuessler

Support passing in handlers

Refs: #7621
1 parent f705da28
...@@ -111,6 +111,10 @@ define(function(require) { ...@@ -111,6 +111,10 @@ define(function(require) {
111 self.model.set('prechecked', false); 111 self.model.set('prechecked', false);
112 }, 500); 112 }, 500);
113 }); 113 });
114
115 if (this.model.get('handlers') && this.model.get('handlers').uploadStart !== undefined) {
116 this.model.get('handlers').uploadStart();
117 }
114 } 118 }
115 }, 119 },
116 fileAdded: function(flowFile) { 120 fileAdded: function(flowFile) {
...@@ -124,6 +128,10 @@ define(function(require) { ...@@ -124,6 +128,10 @@ define(function(require) {
124 model.flowFile = flowFile; 128 model.flowFile = flowFile;
125 this.model.get('collection').add(model); 129 this.model.get('collection').add(model);
126 } 130 }
131
132 if (this.model.get('handlers') && this.model.get('handlers').fileAdded !== undefined) {
133 this.model.get('handlers').fileAdded(flowFile);
134 }
127 return true; 135 return true;
128 }, 136 },
129 filesAdded: function() { 137 filesAdded: function() {
......