Add some commas to the paths loaded badge

This commit is contained in:
Kevin Sawicki
2013-05-16 16:22:53 -07:00
parent 392ffce8c7
commit a965cb684c
2 changed files with 4 additions and 2 deletions

View File

@@ -25,7 +25,8 @@
"less": "git://github.com/nathansobo/less.js.git",
"roaster": "0.0.3",
"jqueryui-browser": "1.10.2-1",
"season": "0.7.0"
"season": "0.7.0",
"humanize-plus": "1.1.0"
},
"devDependencies": {
"biscotto": "0.0.11"

View File

@@ -2,6 +2,7 @@
SelectList = require 'select-list'
_ = require 'underscore'
$ = require 'jquery'
humanize = require 'humanize-plus'
fsUtils = require 'fs-utils'
LoadPathsTask = require './load-paths-task'
@@ -167,7 +168,7 @@ class FuzzyFinderView extends SelectList
@populateProjectPaths(options)
@loadPathsTask = new LoadPathsTask(callback)
@loadPathsTask.on 'paths-loaded', (paths) =>
@loadingBadge.text(paths.length)
@loadingBadge.text(humanize.intcomma(paths.length))
@loadPathsTask.start()
populateOpenBufferPaths: ->