replace Intl.NumberFormat with numeraljs
This commit is contained in:
parent
534f7bbed4
commit
141e98f027
7 changed files with 13 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
define(["config", "moment", "router", "leaflet", "gui"],
|
||||
function (config, moment, Router, L, GUI) {
|
||||
define(["config", "moment", "router", "leaflet", "gui", "numeral"],
|
||||
function (config, moment, Router, L, GUI, numeral) {
|
||||
return function () {
|
||||
function handleData(data) {
|
||||
var nodes = Object.keys(data[0].nodes).map(function (key) { return data[0].nodes[key] })
|
||||
|
@ -77,7 +77,9 @@ function (config, moment, Router, L, GUI) {
|
|||
}
|
||||
}
|
||||
|
||||
numeral.language("de")
|
||||
moment.locale("de")
|
||||
|
||||
var router = new Router()
|
||||
|
||||
var urls = [ config.dataPath + "nodes.json",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue