From a371cab3b66fde2fd878cb99f7fb548da886b4ea Mon Sep 17 00:00:00 2001 From: Chris Hostetter Date: Wed, 15 Nov 2017 11:33:11 -0700 Subject: [PATCH] Fix javascript indentation now that i figured out my emacs configs were previously broken --- solr/solr-ref-guide/src/js/customscripts.js | 114 ++++++++++---------- 1 file changed, 57 insertions(+), 57 deletions(-) diff --git a/solr/solr-ref-guide/src/js/customscripts.js b/solr/solr-ref-guide/src/js/customscripts.js index 64fa03145c9..782e45a3dc5 100755 --- a/solr/solr-ref-guide/src/js/customscripts.js +++ b/solr/solr-ref-guide/src/js/customscripts.js @@ -4,56 +4,56 @@ $('#mysidebar').height($(".nav").height()); $( document ).ready(function() { - //this script says, if the height of the viewport is greater than 800px, then insert affix class, which makes the nav bar float in a fixed - // position as your scroll. if you have a lot of nav items, this height may not work for you. - // commented out...to add back, uncomment the next line, then the 3 after the "console.log" comment - //var h = $(window).height(); - //console.log (h); - //if (h > 800) { - // $( "#mysidebar" ).attr("class", "nav affix"); - // } - // activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme. - $('[data-toggle="tooltip"]').tooltip({ - placement : 'top' - }); + //this script says, if the height of the viewport is greater than 800px, then insert affix class, which makes the nav bar float in a fixed + // position as your scroll. if you have a lot of nav items, this height may not work for you. + // commented out...to add back, uncomment the next line, then the 3 after the "console.log" comment + //var h = $(window).height(); + //console.log (h); + //if (h > 800) { + // $( "#mysidebar" ).attr("class", "nav affix"); + // } + // activate tooltips. although this is a bootstrap js function, it must be activated this way in your theme. + $('[data-toggle="tooltip"]').tooltip({ + placement : 'top' + }); - /** - * AnchorJS - */ - anchors.add('h2,h3,h4,h5'); + /** + * AnchorJS + */ + anchors.add('h2,h3,h4,h5'); - // "Bootstrap Bootstrap" - // NOTE: by default, we use "dynamic-tabs" in our wrapper instead of "tab-content" - // so that if javascript is disabled, bootstrap's CSS doesn't hide all non-active "tab-pane" divs - $(".dynamic-tabs").each(function(ignored) { + // "Bootstrap Bootstrap" + // NOTE: by default, we use "dynamic-tabs" in our wrapper instead of "tab-content" + // so that if javascript is disabled, bootstrap's CSS doesn't hide all non-active "tab-pane" divs + $(".dynamic-tabs").each(function(ignored) { $(this).addClass("tab-content"); var nav_ul = $("