Fix scatterplot saving feature

This commit is contained in:
guerler
2018-10-22 14:21:46 -04:00
parent 77f742d7ff
commit 4e426ce256
3 changed files with 4 additions and 3 deletions
@@ -20,7 +20,7 @@ var Visualization = Backbone.Model.extend({
/** override urlRoot to handle prefix */
urlRoot: function() {
var apiUrl = "api/visualizations";
return Galaxy.root + apiUrl;
return Galaxy.root_api + apiUrl;
},
/** Set up the model, determine if accessible, bind listeners
File diff suppressed because one or more lines are too long
@@ -9,6 +9,7 @@
# Use root for resource loading.
root = h.url_for( '/static/' )
root_api = h.url_for( '/' )
%>
## ----------------------------------------------------------------------------
@@ -24,7 +25,7 @@ ${h.stylesheet_link( root + 'plugins/visualizations/scatterplot/static/scatterpl
## ----------------------------------------------------------------------------
<script type="text/javascript">
window.Galaxy = { root: '${ root }' };
window.Galaxy = { root: '${ root }', root_api: '${ root_api }' };
</script>
${h.javascript_link( root + 'plugins/visualizations/scatterplot/static/scatterplot.js' )}