diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-28 17:07:41 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-28 17:07:41 -0700 |
commit | 9bdc84733de3786652004f083cade989c00c5240 (patch) | |
tree | 094a1bf410b907fd8a29ce848786e77c3ecb03ac | |
parent | ce6d453b3f32af98e13b62fe10b62173c59bde44 (diff) |
use jquery.scrollTo to scroll the active upload into view.
-rw-r--r-- | modules/gallery/views/simple_uploader.html.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php index f10d764c..4c1e70f0 100644 --- a/modules/gallery/views/simple_uploader.html.php +++ b/modules/gallery/views/simple_uploader.html.php @@ -1,6 +1,7 @@ <?php defined("SYSPATH") or die("No direct script access.") ?> <script type="text/javascript" src="<?= url::file("lib/swfupload/swfupload.js") ?>"></script> <script type="text/javascript" src="<?= url::file("lib/swfupload/swfupload.queue.js") ?>"></script> +<script type="text/javascript" src="<?= url::file("lib/jquery.scrollTo.js") ?>"></script> <!-- hack to set the title for the dialog --> <form id="gAddPhotosForm" action="<?= url::site("simple_uploader/finish?csrf=$csrf") ?>"> @@ -184,6 +185,7 @@ var fp = new File_Progress(file); fp.title.html(file.name); fp.set_status("uploading", "<?= t("Uploading...") ?>"); + $("#gAddPhotosCanvas").scrollTo(fp.box, 1000); return true; // @todo add cancel button to call this.cancelUpload(file.id) } |