summaryrefslogtreecommitdiffstats
path: root/doc/src/template/scripts/narrow.js
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/template/scripts/narrow.js')
-rw-r--r--doc/src/template/scripts/narrow.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/doc/src/template/scripts/narrow.js b/doc/src/template/scripts/narrow.js
index 12d0ce8..35c81bf 100644
--- a/doc/src/template/scripts/narrow.js
+++ b/doc/src/template/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 () {