From 3ddde1a1caa9af426b9bb1b07d5448231efd373d Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 15 Jun 2019 19:50:25 -0500 Subject: [PATCH] Use locale formatting for some numbers in the Buefy grid --- tailbone/static/js/tailbone.buefy.grid.js | 2 +- tailbone/templates/grids/buefy.mako | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tailbone/static/js/tailbone.buefy.grid.js b/tailbone/static/js/tailbone.buefy.grid.js index 72312e12..97ed6053 100644 --- a/tailbone/static/js/tailbone.buefy.grid.js +++ b/tailbone/static/js/tailbone.buefy.grid.js @@ -158,7 +158,7 @@ let TailboneGrid = { // submit form if user confirms // TODO: how/where to get/show "plural model title" here? // if (confirm("You are about to delete " + this.total + " ${grid.model_title_plural}.\n\nAre you sure?")) { - if (confirm("You are about to delete " + this.total + " objects.\n\nAre you sure?")) { + if (confirm("You are about to delete " + this.total.toLocaleString('en') + " objects.\n\nAre you sure?")) { event.target.form.submit() } }, diff --git a/tailbone/templates/grids/buefy.mako b/tailbone/templates/grids/buefy.mako index f61c51c4..fcce51e0 100644 --- a/tailbone/templates/grids/buefy.mako +++ b/tailbone/templates/grids/buefy.mako @@ -178,7 +178,7 @@