Fixes for Internet Explorer 7 and its strict JSON object modelling
This commit is contained in:
parent
7cbaf4b264
commit
6ee9e98e5e
@ -74,21 +74,21 @@ var createExplorer = function(dataset, state) {
|
||||
label: 'Grid',
|
||||
view: new recline.View.SlickGrid({
|
||||
model: dataset
|
||||
}),
|
||||
})
|
||||
},
|
||||
{
|
||||
id: 'graph',
|
||||
label: 'Graph',
|
||||
view: new recline.View.Graph({
|
||||
model: dataset
|
||||
}),
|
||||
})
|
||||
},
|
||||
{
|
||||
id: 'map',
|
||||
label: 'Map',
|
||||
view: new recline.View.Map({
|
||||
model: dataset
|
||||
}),
|
||||
})
|
||||
},
|
||||
{
|
||||
id: 'transform',
|
||||
|
||||
@ -230,7 +230,7 @@ this.recline.Backend.ElasticSearch = this.recline.Backend.ElasticSearch || {};
|
||||
var jqxhr = es.query(queryObj);
|
||||
jqxhr.done(function(results) {
|
||||
var out = {
|
||||
total: results.hits.total,
|
||||
total: results.hits.total
|
||||
};
|
||||
out.hits = _.map(results.hits.hits, function(hit) {
|
||||
if (!('id' in hit._source) && hit._id) {
|
||||
|
||||
@ -221,7 +221,7 @@ my.Graph = Backbone.View.extend({
|
||||
horizontal: true,
|
||||
shadowSize: 0,
|
||||
barWidth: 0.8
|
||||
},
|
||||
}
|
||||
},
|
||||
columns: {
|
||||
legend: legend,
|
||||
@ -242,9 +242,9 @@ my.Graph = Backbone.View.extend({
|
||||
horizontal: false,
|
||||
shadowSize: 0,
|
||||
barWidth: 0.8
|
||||
},
|
||||
}
|
||||
},
|
||||
grid: { hoverable: true, clickable: true },
|
||||
grid: { hoverable: true, clickable: true }
|
||||
};
|
||||
return optionsPerGraphType[typeId];
|
||||
},
|
||||
@ -424,7 +424,7 @@ my.GraphControls = Backbone.View.extend({
|
||||
addSeries: function (idx) {
|
||||
var data = _.extend({
|
||||
seriesIndex: idx,
|
||||
seriesName: String.fromCharCode(idx + 64 + 1),
|
||||
seriesName: String.fromCharCode(idx + 64 + 1)
|
||||
}, this.model.toTemplateJSON());
|
||||
|
||||
var htmls = Mustache.render(this.templateSeriesEditor, data);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user