Skip to content

Commit

Permalink
fixed #298
Browse files Browse the repository at this point in the history
  • Loading branch information
Danial Farid authored and Danial Farid committed Sep 14, 2014
1 parent 6ea5480 commit 1cd9d87
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions dist/angular-file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ angularFileUpload.directive('ngFileSelect', [ '$parse', '$timeout', function($pa
fileElem.css("top", 0).css("bottom", 0).css("left", 0).css("right", 0).css("width", "100%").
css("opacity", 0).css("position", "absolute").css('filter', 'alpha(opacity=0)');
elem.append(fileElem);
// if (fileElem.parent()[0] != elem[0]) {
// //fix #298
// elem.wrap('<span>');
// elem.css("z-index", "-1000")
// elem.parent().append(fileElem);
// elem = elem.parent();
// }
if (fileElem.parent()[0] != elem[0]) {
//fix #298
elem.wrap('<span>');
elem.css("z-index", "-1000")
elem.parent().append(fileElem);
elem = elem.parent();
}
if (elem.css("position") === '' || elem.css("position") === 'static') {
elem.css("position", "relative");
}
Expand Down
2 changes: 1 addition & 1 deletion dist/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 1cd9d87

Please sign in to comment.