ignore index.json, reload it

This commit is contained in:
j 2012-04-18 14:35:16 +02:00
parent 796d784dd8
commit 4ad7bc8ad4
2 changed files with 2 additions and 1 deletions

View file

@ -3,3 +3,4 @@ tools/geo/json/_cities.json
dev
build/
tools/geo/json/countries.json
index.json

View file

@ -215,7 +215,7 @@ Ox.load(function() {
app.state.loaded = true;
},
loadData: function(callback) {
Ox.getJSON('index.json', function(data) {
Ox.getJSON('index.json?'+Ox.random(1000), function(data) {
app.data = Ox.extend(app.data, data);
app.data.pages.forEach(function(page) {
var id = page.id == 'doc' ? 'documentation' : page.id;