[css,layout][m]: get things layed out reasonably nicely again.
* Use top menu again * Refactor main area so that data-table-container becomes data-view-container * Fix up width of flot graph and editor so they line up reasonably nicely
This commit is contained in:
@@ -12,6 +12,7 @@ recline.DataExplorer = Backbone.View.extend({
|
||||
<label for="nav-graph">Graph</label> \
|
||||
</span> \
|
||||
</div> \
|
||||
<div class="data-view-container"></div> \
|
||||
',
|
||||
|
||||
events: {
|
||||
@@ -21,6 +22,7 @@ recline.DataExplorer = Backbone.View.extend({
|
||||
initialize: function() {
|
||||
this.el = $(this.el);
|
||||
this.render();
|
||||
this.$dataViewContainer = this.el.find('.data-view-container');
|
||||
var self = this;
|
||||
// retrieve basic data like headers etc
|
||||
// note this.model and dataset returned are the same
|
||||
@@ -33,8 +35,8 @@ recline.DataExplorer = Backbone.View.extend({
|
||||
model: dataset
|
||||
});
|
||||
self.flotGraph.el.hide();
|
||||
self.el.append(self.dataTable.el)
|
||||
self.el.append(self.flotGraph.el);
|
||||
self.$dataViewContainer.append(self.dataTable.el)
|
||||
self.$dataViewContainer.append(self.flotGraph.el);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user