Fix JS issue with script throwing error on Landing Page.

This commit is contained in:
Gautham Warrier 2014-02-19 09:51:19 +05:30
parent 0d81614afd
commit 73542f286e

View File

@ -22,7 +22,8 @@ $(function () {
}); });
//Fix GitHub Ribbon overlapping Scrollbar //Fix GitHub Ribbon overlapping Scrollbar
if ($('article')[0].scrollHeight > $('.right-column').height()) $('#github-ribbon')[0].style.right = '16px' var t = $('#github-ribbon');
if (t[0] && $('article')[0].scrollHeight > $('.right-column').height()) t[0].style.right = '16px';
//Toggle Code Block Visibility //Toggle Code Block Visibility
function toggleCodeBlocks() { function toggleCodeBlocks() {