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 f92e8ff commit 6ea5480
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions demo/war/WEB-INF/appengine-web.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>angular-file-upload</application>
<version>1-6-5</version>
<application>angular-file-upload-cors-srv</application>
<version>1-6-6</version>

<!--
Allows App Engine to send multiple requests to one instance in parallel:
Expand Down
14 changes: 7 additions & 7 deletions demo/war/js/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

0 comments on commit 6ea5480

Please # to comment.