From 7c456c85545b433759913051779bf4af9b000d48 Mon Sep 17 00:00:00 2001 From: fat Date: Wed, 19 Dec 2012 22:05:33 -0800 Subject: fix tooltip doc dumbness --- docs/assets/js/application.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/assets/js/application.js') diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index f6c7849c3..1f7282b66 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -34,7 +34,7 @@ // add tipsies to grid for scaffolding if ($('#gridSystem').length) { $('#gridSystem').tooltip({ - selector: '.show-grid > div' + selector: '.show-grid > div:not(.tooltip)' , title: function () { return $(this).width() + 'px' } }) } -- cgit v1.2.3 From e9eff0cbffdd4381ee990e6fc78bee6caec92a00 Mon Sep 17 00:00:00 2001 From: fat Date: Wed, 19 Dec 2012 22:37:41 -0800 Subject: wait 100ms before engaging affix (allows for initial browser scroll) --- docs/assets/js/application.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'docs/assets/js/application.js') diff --git a/docs/assets/js/application.js b/docs/assets/js/application.js index 1f7282b66..ba7767300 100644 --- a/docs/assets/js/application.js +++ b/docs/assets/js/application.js @@ -14,12 +14,14 @@ }) // side bar - $('.bs-docs-sidenav').affix({ - offset: { - top: function () { return $window.width() <= 980 ? 290 : 210 } - , bottom: 270 - } - }) + setTimeout(function () { + $('.bs-docs-sidenav').affix({ + offset: { + top: function () { return $window.width() <= 980 ? 290 : 210 } + , bottom: 270 + } + }) + }, 100) // make code pretty window.prettyPrint && prettyPrint() -- cgit v1.2.3