mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-16 11:54:44 -04:00
Change 'completed' status message to be a full sentence with javascript placeholders.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user