Okay
  Public Ticket #303980
Milestone Divider for thousands
Closed

Comments

  • Jono started the conversation

    Hi guys,

    I've read through the other tickets on here about milestones and the thousands seperators.

    I'm happy enough, for now, to add the formatter code to the init.js that will add the thousands seperator, the code is actually in the example.html of the countTo plugin on github.

    Problem is, as soon as we update the theme, I'll have to make the change again. And again. And again. Can you please add this as a request for a future version? Cheers, code is below:

    formatter: function (value, options) {

    return value.toFixed(options.decimals).replace(/\B(?=(?:\d{3})+(?!\d))/g, ',');

    }

  •  1,071
    ThemeNectar replied

    Hey! Thanks for the formatter function - will note it :)

    Cheers