From 9872823d38894604662dc60d92480a1e062b815d Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Mon, 12 Feb 2018 20:03:06 +0100
Subject: [PATCH] reorder scripts inclusion (should use Webpack instead...)

---
 views/course-list.pug | 4 ++--
 views/course.pug      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/views/course-list.pug b/views/course-list.pug
index 5ab2dcf..718b246 100644
--- a/views/course-list.pug
+++ b/views/course-list.pug
@@ -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")
diff --git a/views/course.pug b/views/course.pug
index 9de3570..8d2dce4 100644
--- a/views/course.pug
+++ b/views/course.pug
@@ -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")
-- 
2.44.0