Skip to content

Commit 668bf66

Browse files
committed
Use the batchUploadManager from the provider for drop zone if one isn't provided via bu-manager attribute.
1 parent db4aa88 commit 668bf66

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ng-batchupload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ angular.module('batchUpload', [])
5757
buChunksParameter: '@?'
5858
},
5959
bindToController: true,
60-
controller: ['$element', function($element) {
60+
controller: ['$element', 'batchUploadManager', function($element, batchUploadManager) {
6161
var settings = {};
6262

6363
this.$onInit = function() {
@@ -106,7 +106,7 @@ angular.module('batchUpload', [])
106106
settings.chunksParameter = this.buChunksParameter;
107107
}
108108

109-
settings.manager = this.buManager || null;
109+
settings.manager = this.buManager || batchUploadManager;
110110

111111
this.dropzone = new FileDropZone($element[0], settings);
112112

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-batchupload",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A wrapper module to angular for the batchupload library",
55
"main": "ng-batchupload.js",
66
"scripts": {

0 commit comments

Comments
 (0)