Skip to content

Commit 21f7620

Browse files
committed
include jquery which is required for bootstrap to work
1 parent d316214 commit 21f7620

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

ceuk-marking/settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
BASE_DIR / "crowdsourcer" / "static",
160160
("bootstrap", BASE_DIR / "vendor" / "bootstrap" / "scss"),
161161
("bootstrap", BASE_DIR / "vendor" / "bootstrap" / "js"),
162+
("jquery", BASE_DIR / "vendor" / "jquery" / "js"),
162163
]
163164

164165
# only want to do this for live really

crowdsourcer/templates/crowdsourcer/base.html

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
<a href="{% url 'privacy_policy' %}" style="color: inherit">Privacy Policy</a>
158158
</div>
159159
</div>
160+
<script src="{% static 'jquery/jquery.min.js' %}"></script>
160161
<script src="{% static 'bootstrap/bootstrap.bundle.min.js' %}"></script>
161162
</body>
162163
</html>

vendor/jquery/js/jquery.esm.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import './jquery.min.js'
2+
export default window.jQuery.noConflict(true)

vendor/jquery/js/jquery.min.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)