~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to doc/build/static/init.js

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    });
8
8
}
9
9
 
10
 
/*function initFloatyThings() {
11
 
        $("dl.function, dl.class, dl.method, dl.attr, dl.data").each(function(idx, elem) {
12
 
                $(elem).prepend("<div class='floatything'>" + $(elem).contents("dt").attr('id')+ "</div>");
13
 
        });
14
 
}*/
 
10
var automatedBreakpoint = -1;
 
11
 
 
12
function initFloatyThings() {
 
13
 
 
14
    automatedBreakpoint = $("#docs-container").position().top + $("#docs-top-navigation-container").height();
 
15
 
 
16
    $("#fixed-sidebar.withsidebar").addClass("preautomated");
 
17
 
 
18
 
 
19
    function setScroll() {
 
20
 
 
21
        var scrolltop = $(window).scrollTop();
 
22
        if (scrolltop >= automatedBreakpoint) {
 
23
            $("#fixed-sidebar.withsidebar").css("top", 5);
 
24
        }
 
25
        else {
 
26
            $("#fixed-sidebar.withsidebar").css(
 
27
                "top", $("#docs-body").offset().top - Math.max(scrolltop, 0));
 
28
        }
 
29
 
 
30
 
 
31
    }
 
32
    $(window).scroll(setScroll)
 
33
 
 
34
    setScroll();
 
35
}
 
36
 
15
37
 
16
38
$(document).ready(function() {
17
39
    initSQLPopups();
18
 
    /*initFloatyThings();*/
 
40
    if (!$.browser.mobile) {
 
41
        initFloatyThings();
 
42
    }
19
43
});
20
44