Skip to content

Commit

Permalink
v1.1.3 fixed #37 #39
Browse files Browse the repository at this point in the history
  • Loading branch information
danialfarid committed Nov 8, 2013
1 parent 6beff02 commit 02afbc5
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion angular-file-upload-shim.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**!
* AngularJS file upload shim for HTML5 FormData
* @author Danial <[email protected]>
* @version 1.1.2
* @version 1.1.3
*/
(function() {

Expand Down
2 changes: 1 addition & 1 deletion angular-file-upload-shim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion angular-file-upload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**!
* AngularJS file upload/drop directive with http post and progress
* @author Danial <[email protected]>
* @version 1.1.2
* @version 1.1.3
*/
(function() {

Expand Down
10 changes: 5 additions & 5 deletions angular-file-upload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion war/js/angular-file-upload-shim.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**!
* AngularJS file upload shim for HTML5 FormData
* @author Danial <[email protected]>
* @version 1.1.2
* @version 1.1.3
*/
(function() {

Expand Down
2 changes: 1 addition & 1 deletion war/js/angular-file-upload-shim.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions war/js/angular-file-upload.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**!
* AngularJS file upload/drop directive with http post and progress
* @author Danial <[email protected]>
* @version 1.1.2
* @version 1.1.3
*/
(function() {

Expand All @@ -15,7 +15,7 @@ angularFileUpload.service('$upload', ['$http', function($http) {
config.transformRequest = angular.identity;
var formData = new FormData();
if (config.data) {
for (key in config.data) {
for (var key in config.data) {
formData.append(key, config.data[key]);
}
}
Expand Down Expand Up @@ -83,15 +83,15 @@ angularFileUpload.directive('ngFileDrop', [ '$parse', '$http', function($parse,
elem[0].addEventListener("dragover", function(evt) {
evt.stopPropagation();
evt.preventDefault();
elem.addClass("dragover");
elem.addClass(attr['ngFileDragOverClass'] || "dragover");
}, false);
elem[0].addEventListener("dragleave", function(evt) {
elem.removeClass("dragover");
elem.removeClass(attr['ngFileDragOverClass'] || "dragover");
}, false);
elem[0].addEventListener("drop", function(evt) {
evt.stopPropagation();
evt.preventDefault();
elem.removeClass("dragover");
elem.removeClass(attr['ngFileDragOverClass'] || "dragover");
var files = [], fileList = evt.dataTransfer.files, i;
if (fileList != null) {
for (i = 0; i < fileList.length; i++) {
Expand All @@ -109,4 +109,4 @@ angularFileUpload.directive('ngFileDrop', [ '$parse', '$http', function($parse,
};
} ]);

})();
})();
10 changes: 5 additions & 5 deletions war/js/angular-file-upload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02afbc5

Please sign in to comment.