Skip to content

Commit

Permalink
Merge pull request #4819 from damianz5/jquery_fix
Browse files Browse the repository at this point in the history
Fix for jQuery in doc-embed call
  • Loading branch information
ericholscher committed Oct 31, 2018
2 parents 8c2fda0 + d22a041 commit 70bf58b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions readthedocs/core/static-src/core/js/doc-embed/sphinx.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ function init() {
if (rtd.is_rtd_like_theme()) {
// Add a scrollable element to the sidebar on the RTD sphinx theme
// This fix is for sphinx_rtd_theme<=0.1.8
var navBar = jquery('div.wy-side-scroll:first');
var navBar = $('div.wy-side-scroll:first');
if (!navBar.length) {
console.log('Applying theme sidebar fix...');
var navInner = jquery('nav.wy-nav-side:first');
var navInner = $('nav.wy-nav-side:first');
var navScroll = $('<div />')
.addClass('wy-side-scroll');

Expand Down

0 comments on commit 70bf58b

Please sign in to comment.