From dfd4435e27182ad4f1bdfaf9605a16dbb69759e5 Mon Sep 17 00:00:00 2001 From: vrde Date: Tue, 16 Jun 2015 14:42:36 +0200 Subject: [PATCH] Fix baseUrl to load shmui --- js/components/ascribe_media/media_player.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/components/ascribe_media/media_player.js b/js/components/ascribe_media/media_player.js index b0002de0..42bd2224 100644 --- a/js/components/ascribe_media/media_player.js +++ b/js/components/ascribe_media/media_player.js @@ -3,6 +3,7 @@ import React from 'react'; import InjectInHeadMixin from '../../mixins/inject_in_head_mixin'; import Panel from 'react-bootstrap/lib/Panel'; +import AppConstants from '../../constants/application_constants.js'; /** * This is the component that implements display-specific functionality. @@ -46,8 +47,8 @@ let Image = React.createClass({ this.inject('http://code.jquery.com/jquery-2.1.4.min.js') .then(() => Promise.all([ - this.inject('/static/thirdparty/shmui/shmui.css'), - this.inject('/static/thirdparty/shmui/jquery.shmui.js') + this.inject(AppConstants.baseUrl + 'static/thirdparty/shmui/shmui.css'), + this.inject(AppConstants.baseUrl + 'static/thirdparty/shmui/jquery.shmui.js') ]).then(() => { window.jQuery('.shmui-ascribe').shmui(); })); },