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 ------------------------------------------------*/
.upload_message .rows .row {
float: left;
display: inline-block;
padding: 8px 0px;
width: 100%;

View File

@ -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 one or more lines are too long

File diff suppressed because one or more lines are too long