Browse Source

Scroll to current uploading item

Tobias Reich 10 years ago
parent
commit
26c3cc9104
4 changed files with 4 additions and 3 deletions
  1. 1 0
      assets/css/upload.css
  2. 3 3
      assets/js/upload.js
  3. 0 0
      assets/min/main.css
  4. 0 0
      assets/min/main.js

+ 1 - 0
assets/css/upload.css

@@ -82,6 +82,7 @@
 
 	/* Row ------------------------------------------------*/
 	.upload_message .rows .row {
+		float: left;
 		display: inline-block;
 		padding: 8px 0px;
 		width: 100%;

+ 3 - 3
assets/js/upload.js

@@ -119,9 +119,9 @@ upload = {
 
 							if (progress>=100) {
 
-								/*$(".upload_message .rows").animate({
-									scrollTop: $(".upload_message .rows .row:nth-child(" + (file.num+1) + ")").offset().top - 200
-								}, 0);*/
+								var scrollPos = 0;
+								if ((file.num+1)>4) scrollPos = (file.num + 1 - 4) * 40
+								$(".upload_message .rows").scrollTop(scrollPos);
 
 								$(".upload_message .rows .row:nth-child(" + (file.num+1) + ") .status").html("Processing");
 

File diff suppressed because it is too large
+ 0 - 0
assets/min/main.css


File diff suppressed because it is too large
+ 0 - 0
assets/min/main.js


Some files were not shown because too many files changed in this diff