##// END OF EJS Templates
Use relative paths for widget js jquery imports
Jonathan Frederic -
Show More
@@ -35,7 +35,7 b' def init_widget_js():'
35 name = filename.rsplit('.', 1)[0]
35 name = filename.rsplit('.', 1)[0]
36 if not (name == 'widget' or name == '__init__') and name.startswith('widget_'):
36 if not (name == 'widget' or name == '__init__') and name.startswith('widget_'):
37 # Remove 'widget_' from the start of the name before compiling the path.
37 # Remove 'widget_' from the start of the name before compiling the path.
38 js_path = '/static/notebook/js/widgets/%s.js' % name[7:]
38 js_path = '../static/notebook/js/widgets/%s.js' % name[7:]
39 display(Javascript(data='$.getScript("%s");' % js_path), exclude="text/plain")
39 display(Javascript(data='$.getScript("%s");' % js_path), exclude="text/plain")
40
40
41
41
General Comments 0
You need to be logged in to leave comments. Login now