Permalink
Browse files

Bugfixes

  • Loading branch information...
Calvein committed Sep 28, 2011
1 parent 7b5717a commit 57a19d8bbd4e239e38841805a7eb1bf4c837fa74
Showing with 5 additions and 2 deletions.
  1. +5 −2 index.html
View
@@ -153,6 +153,7 @@
#uploader img {
max-width: 24px;
max-height: 24px;
+ vertical-align: middle;
}
#uploader label {
@@ -203,7 +204,7 @@
border-radius: 3px;
border: none;
box-shadow: inset 0 1px #bbb,
- 0 -1px 1px rgba(0, 0, 0, .2);
+ 0 -1px 1px rgba(0, 0, 0, .2);
}
#uploader progress::-webkit-progress-bar {
@@ -447,6 +448,7 @@ <h2>By <a href="http://twitter.com/Calvein">Calvein</a> based on the original id
upload.addEventListener('loadstart', function(e) {
$label.style.display = 'none';
$progress.style.opacity = 1;
+ $file.style.zIndex = -1;
if (isImage) {
$uploader.style.width = '32px';
$progress.style.left = '40px';
@@ -485,7 +487,7 @@ <h2>By <a href="http://twitter.com/Calvein">Calvein</a> based on the original id
xhr.send(file);
}
-$label.addEventListener('click', function(e) {
+$file.addEventListener('click', function(e) {
if ('webkitNotifications' in window && webkitNotifications.checkPermission() !== 0)
webkitNotifications.requestPermission();
}, false);
@@ -522,6 +524,7 @@ <h2>By <a href="http://twitter.com/Calvein">Calvein</a> based on the original id
$img.parentNode.removeChild($img);
$label.style.display = 'inline-block';
$progress.style.opacity = 0;
+ $file.style.zIndex = 1;
$ok.style.left = '40px';
$ok.style.opacity = 0;
$figure.style.display = 'inline-block';

0 comments on commit 57a19d8

Please sign in to comment.