diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-11 07:10:05 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-11 07:10:05 -0700 |
commit | f2a3fa46f5a5cc31d251c1557f8b1cfbb6f46027 (patch) | |
tree | 9167ad33c61b94d5f9f7a7100641094f4a5b9f3b | |
parent | 30346ec84214027e5e192020ce60608e48cb9530 (diff) |
Change 'completed' status message to be a full sentence with javascript placeholders.
-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..bf3d7c57 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(); } |