diff --git a/snipt/media/css/style.less b/snipt/media/css/style.less index 890b2ea..41d1bda 100644 --- a/snipt/media/css/style.less +++ b/snipt/media/css/style.less @@ -751,6 +751,9 @@ body.detail { h3 { display: none; } + .dsq-textarea-wrapper { + overflow: hidden; + } } #dsq-footer { display: none; diff --git a/snipt/media/js/src/modules/snipt.js b/snipt/media/js/src/modules/snipt.js index 03702aa..54f2074 100644 --- a/snipt/media/js/src/modules/snipt.js +++ b/snipt/media/js/src/modules/snipt.js @@ -159,8 +159,10 @@ }); $document.bind('keydown', 'n', function() { var $anc = $('li.next a'); - if ($anc.attr('href') !== '#') { - window.location = $anc.attr('href'); + if ($anc.length) { + if ($anc.attr('href') !== '#') { + window.location = $anc.attr('href'); + } } }); $document.bind('keydown', 'o', function() { @@ -170,8 +172,10 @@ }); $document.bind('keydown', 'p', function() { var $anc = $('li.prev a'); - if ($anc.attr('href') !== '#') { - window.location = $anc.attr('href'); + if ($anc.length) { + if ($anc.attr('href') !== '#') { + window.location = $anc.attr('href'); + } } }); $document.bind('keydown', 'return', function() {