Skip to content

Commit

Permalink
Merge pull request #4767 from usingsky/followers_counter
Browse files Browse the repository at this point in the history
Fix incremented follower-counter
  • Loading branch information
smotornyuk committed May 25, 2019
2 parents 687afaf + 4142c32 commit 811fd44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/public/base/javascript/modules/followers-counter.js
Expand Up @@ -61,6 +61,8 @@ this.ckan.module('followers-counter', function($) {
var action = options.action;
var incrementedFollowers;

locale = locale ? locale.replace('_', '-') : locale;

if (action === 'follow') {
incrementedFollowers = (++this.options.num_followers).toLocaleString(locale);
} else if (action === 'unfollow') {
Expand Down

0 comments on commit 811fd44

Please sign in to comment.