diff options
author | David Boddie <dboddie@trolltech.com> | 2010-08-24 17:45:21 +0200 |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2010-08-24 17:45:21 +0200 |
commit | 8e6569663ecbf7389b3df5d86f4ce2d1102b16c0 (patch) | |
tree | 290fe9c4af570126949093affc25c7a9fb84e8ed /doc/templates/scripts/narrow.js | |
parent | 1cbc4116d3c6fa1320ee4523e45a5f0df004cd3a (diff) | |
parent | e5076cc5e50be46b2f2a2307660e5e8603b780ad (diff) | |
download | qt-creator-8e6569663ecbf7389b3df5d86f4ce2d1102b16c0.tar.gz |
Merge branch '2.0' of scm.dev.nokia.troll.no:creator/mainline into 2.0
Diffstat (limited to 'doc/templates/scripts/narrow.js')
-rw-r--r-- | doc/templates/scripts/narrow.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/templates/scripts/narrow.js b/doc/templates/scripts/narrow.js index 12d0ce89d5..35c81bf4a4 100644 --- a/doc/templates/scripts/narrow.js +++ b/doc/templates/scripts/narrow.js @@ -59,9 +59,20 @@ var narrowInit = function() { } $(document).ready(function(){ - if ($('body').hasClass('narrow')) { +/* if ($('body').hasClass('narrow')) { narrowInit(); } + */ + if($(window).width()<600) { + $('body').addClass('narrow'); + + if ($("#narrowsearch").length == 0) { + narrowInit(); + } + } + else { + $('body').removeClass('narrow'); + } }); $(window).bind('resize', function () { |