Skip to content

Commit 8048602

Browse files
authored
Explicitly set JQuery globals on main site (#9877)
I guess this is related to the jquery update from #9861, or maybe this line wasn't working and we were relying in something else? Not sure why I didn't notice this before, maybe my browser cache :( Ref #9861
1 parent 0942d91 commit 8048602

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/templates/base.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@
6767
<script src="{% static 'vendor/jquery-migrate.js' %}"></script>
6868
<script src="{% static 'vendor/jquery-ui.js' %}"></script>
6969
<script >
70-
require('jquery');
70+
// Set jQuery to its expected globals.
71+
window.$ = require('jquery');
72+
window.jQuery = window.$;
7173
</script>
7274

7375
<script src="{% static 'javascript/base.js' %}"></script>

0 commit comments

Comments
 (0)