move config.js to config.json, load by XHR

This commit is contained in:
Nils Schneider 2015-07-19 19:45:25 +02:00
commit 102c8af873
4 changed files with 15 additions and 15 deletions

View file

@ -1,6 +1,6 @@
define(["../config", "moment", "router", "leaflet", "gui", "numeral"],
function (config, moment, Router, L, GUI, numeral) {
return function () {
define(["moment", "router", "leaflet", "gui", "numeral"],
function (moment, Router, L, GUI, numeral) {
return function (config) {
function handleData(data) {
var dataNodes = data[0]
var dataGraph = data[1]