Private
Public Access
1
0

able to load scripts but cannot get them to go to the right place

Work in progress
This commit is contained in:
Sander Roosendaal
2017-11-04 17:12:40 +01:00
parent 54f06baf48
commit 80f4ca585b
5 changed files with 64 additions and 15 deletions

View File

@@ -25,6 +25,20 @@
{% block scripts %}
{% include "monitorjobs.html" %}
<script>
$(function($) {
console.log('loading script');
$.getJSON(window.location.protocol + '//'+window.location.host + '/rowers/workout/{{ workout.id }}/get-testscript', function(json) {
console.log('script loaded');
$.each(json, function(index, element) {
console.log('adding thumbnail');
$("#id_thumbs").append(element.div);
$("#id_thumbscripts").append(element.script);
});
});
});
</script>
{% endblock %}