]> arthur.barton.de Git - netdata.git/commitdiff
Merge pull request #472 from ktsaou/master
authorCosta Tsaousis <costa@tsaousis.gr>
Tue, 31 May 2016 22:54:49 +0000 (01:54 +0300)
committerCosta Tsaousis <costa@tsaousis.gr>
Tue, 31 May 2016 22:54:49 +0000 (01:54 +0300)
TCP_CORK when available; gzip compression configuration options

web/index.html

index 803ba04703d29f6ba8c1f87b111d3f92e477f97e..a52fa02153607176cc67820c9e7be089fa16371b 100644 (file)
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
 <html lang="en">
 <head>
        <title>netdata dashboard</title>
@@ -2427,6 +2427,16 @@ function finalizePage() {
                offset: $(window).height() / 3 // controls the diff of the <hX> element to the top, to select it
        });
 
+       $('#sidebar').on('activate.bs.scrollspy', function (e)\r
+       {\r
+               var el = $(e.target);\r
+               if (el.find('ul').size() == 0)\r
+               {\r
+                       var href = el.find('a').attr('href');\r
+                       history.pushState(null, document.title, href);\r
+               };\r
+       });
+
        document.getElementById('footer').style.display = 'block';