[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:
rgrp
2011-11-15 20:40:27 +00:00
parent 08ab25e981
commit 67f7660ab9
6 changed files with 56 additions and 32 deletions

View File

@@ -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);
});
},