reorder scripts inclusion (should use Webpack instead...)
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 12 Feb 2018 19:03:06 +0000 (20:03 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 12 Feb 2018 19:03:06 +0000 (20:03 +0100)
views/course-list.pug
views/course.pug

index 5ab2dcf..718b246 100644 (file)
@@ -40,9 +40,9 @@ block content
                                                                td(v-html="course.description")
 
 block javascripts
-       script(src="/javascripts/courseList.js")
-       script(src="/javascripts/utils/validation.js")
        script.
                let courseArray = !{JSON.stringify(courseArray)};
                const initials = "#{initials}";
                const admin = #{teacher};
+       script(src="/javascripts/utils/validation.js")
+       script(src="/javascripts/courseList.js")
index 9de3570..8d2dce4 100644 (file)
@@ -186,11 +186,11 @@ block content
 
 block append javascripts
        script(src="//cdnjs.cloudflare.com/ajax/libs/PapaParse/4.3.6/papaparse.min.js")
-       script(src="/javascripts/utils/sha1.js")
-       script(src="/javascripts/utils/validation.js")
        script.
                let assessmentArray = !{JSON.stringify(assessmentArray)};
                const course = !{JSON.stringify(course)};
                const initials = "#{initials}";
                const admin = #{teacher};
+       script(src="/javascripts/utils/sha1.js")
+       script(src="/javascripts/utils/validation.js")
        script(src="/javascripts/course.js")