diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-12 12:37:01 -0700 |
|---|---|---|
| committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-07-12 12:37:01 -0700 |
| commit | 75be4ab2e62004811ba7086376bf5abeca4cf791 (patch) | |
| tree | c510704619b98ebdf647010b9e88119170f98b2d /modules/gallery/views | |
| parent | aa0209d6d3d8535b9bbaaaa6664aa5769ab5f8a6 (diff) | |
| parent | e2967aa1c1a0232e1a1f162db46e6f6db7154dac (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/views')
| -rw-r--r-- | modules/gallery/views/simple_uploader.html.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php index 92155434..06a2eaff 100644 --- a/modules/gallery/views/simple_uploader.html.php +++ b/modules/gallery/views/simple_uploader.html.php @@ -255,9 +255,11 @@ function upload_complete(file) { var stats = this.getStats(); - $("#gUploadQueueInfo").text("(<?= t("completed") ?> " + stats.successful_uploads + - " <?= t("of") ?> " + (stats.files_queued + stats.successful_uploads + - stats.upload_errors + stats.upload_cancelled + stats.queue_errors) + ")"); + var msg = "(<?= t("completed __COMPLETED__ of __TOTAL__") ?>)"; + msg = msg.replace("__COMPLETED__", stats.successful_uploads); + msg = msg.replace("__TOTAL__", stats.files_queued + stats.successful_uploads + + stats.upload_errors + stats.upload_cancelled + stats.queue_errors); + $("#gUploadQueueInfo").text(msg); if (stats.files_queued === 0) { $("#gUploadCancel").hide(); } |
