Visualizations registry: refactor the relationship between plugins, the visualization controller, rendering, and rendering saved visualizations, minor fixes; Extend testing; Scatterplot: fix baseUrl resolution when used in own window

This commit is contained in:
Carl Eberhard
2015-04-28 15:41:01 -04:00
parent 1cf6e64abf
commit ed36e625bb
6 changed files with 237 additions and 109 deletions
@@ -20,7 +20,8 @@ var ScatterplotDisplay = Backbone.View.extend({
var view = this,
config = this.model.get( 'config' ),
//TODO: very tied to datasets - should be generalized eventually
xhr = jQuery.getJSON(((typeof parent.galaxy_config.root == 'undefined') ? '/' : parent.galaxy_config.root) + 'api/datasets/' + this.dataset.id, {
baseUrl = ( window.parent && parent.galaxy_config )? parent.galaxy_config.root : '/',
xhr = jQuery.getJSON( baseUrl + 'api/datasets/' + this.dataset.id, {
data_type : 'raw_data',
provider : 'dataset-column',
limit : config.pagination.perPage,