able to load scripts but cannot get them to go to the right place
Work in progress
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user