From 3c388908fbedab14cd1d00559cabe9ffe6461deb Mon Sep 17 00:00:00 2001 From: Andzs Pilskalns Date: Mon, 22 Oct 2018 14:43:27 +0300 Subject: [PATCH] Use proper baseurl and clippy paths with root and subdir deployments --- static/js/docdock.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/docdock.js b/static/js/docdock.js index d68069cd1df..e18e0440828 100644 --- a/static/js/docdock.js +++ b/static/js/docdock.js @@ -99,6 +99,9 @@ function fallbackMessage(action) { } jQuery(document).ready(function() { + + baseurl = baseurl.endsWith('/')?baseurl:baseurl+'/'; + jQuery('#sidebar .category-icon').on('click', function() { $( this ).toggleClass("fa-angle-down fa-angle-right") ; $( this ).parent().parent().children('ul').toggle() ; @@ -185,7 +188,7 @@ jQuery(document).ready(function() { clipInit = true; } - code.after(''); + code.after(''); code.next('.copy-to-clipboard').on('mouseleave', function() { $(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w'); });