Skip to content

Commit 14ab256

Browse files
committed
Merge branch 'visualization_list' of https://github.com/biojs/biojs-backend into visualization_list
2 parents 1350ca2 + 3f5faea commit 14ab256

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ install:
99
script:
1010
- python manage.py makemigrations
1111
- python manage.py migrate
12-
- python manage.py test
12+
- python manage.py test

main/templates/main/visualizations.html

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{% comment %}
2-
!!ADD VERSION TO WZRD!!
3-
4-
52
Template for rendering visualizations.
63

74
1. Obtain visualization for iframe with URL /visualization/<url_name>/<visualization_name>/
@@ -23,9 +20,9 @@
2320
<link rel="stylesheet" type="text/css" href="{{dependency.css_url}}" />
2421
{% endfor %}
2522
{% for dependency in js_dependencies %}
26-
<script src="{{dependency.js_url}}"></script>
23+
<script type="application/x-javascript" src="{{dependency.js_url}}"></script>
2724
{% endfor %}
28-
<script src="{{sniper_data.wzrd_url}}"></script>
25+
<script type="application/x-javascript" src="{{sniper_data.wzrd_url}}@{{component.version}}"></script>
2926
</head>
3027
<body>
3128
<div id="placeholderDiv" style="display: none">
@@ -34,8 +31,7 @@
3431
</div>
3532
<div id='snippetDiv'></div>
3633
</body>
37-
<script>
38-
//
34+
<script type="text/javascript">
3935
String.prototype.replaceAll = function(search, replacement) {
4036
var target = this;
4137
return target.replace(new RegExp(search, 'g'), replacement);
@@ -90,4 +86,4 @@
9086
eval(script);
9187

9288
</script>
93-
</html>
89+
</html>

0 commit comments

Comments
 (0)