diff --git a/doc/sources/.static/kivy.js b/doc/sources/.static/kivy.js index 4e16d5204..cd08d2971 100644 --- a/doc/sources/.static/kivy.js +++ b/doc/sources/.static/kivy.js @@ -26,6 +26,14 @@ function showheader() { $(document).ready(function () { + $(['div.section[id]', 'dt[id]']).each(function(i1, elem) { + $(elem).each(function(i2, e) { + var eid = $(e).attr('id'); + $(e).removeAttr('id'); + $('
').attr('id', eid).addClass('anchor').insertBefore(e); + }); + }); + st = $.cookie('kivy.header') if ( st == 'hide' ) hideheader(); @@ -38,12 +46,4 @@ $(document).ready(function () { hideheader(true); }); - - $(['div.section[id]', 'dt[id]']).each(function(i1, elem) { - $(elem).each(function(i2, e) { - var eid = $(e).attr('id'); - $(e).removeAttr('id'); - $('
').attr('id', eid).addClass('anchor').insertBefore(e); - }); - }); });