Basepanels don't have Galaxy object, causing failures in views like published tracks, etc., when resource urls are generated incorrectly

This commit is contained in:
Dannon Baker
2016-03-23 16:55:38 -04:00
parent 21e71a9b46
commit b51bdd06b1
+3 -1
View File
@@ -39,7 +39,7 @@
## Default javascripts
<%def name="javascripts()">
## Send errors to Sntry server if configured
## Send errors to Sentry server if configured
%if app.config.sentry_dsn:
${h.js( "libs/tracekit", "libs/raven" )}
<script>
@@ -60,6 +60,8 @@
// configure require
// due to our using both script tags and require, we need to access the same jq in both for plugin retention
// source http://www.manuel-strehl.de/dev/load_jquery_before_requirejs.en.html
window.Galaxy = window.Galaxy || {};
window.Galaxy.root = '${h.url_for( "/" )}';
define( 'jquery', [], function(){ return jQuery; })
// TODO: use one system