Scroll to current uploading item

This commit is contained in:
Tobias Reich 2014-07-18 17:26:24 +02:00
parent e4592190bc
commit 26c3cc9104
4 changed files with 7 additions and 6 deletions

View File

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

View File

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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long