From d42a9fc7b18264b98a54bd245f5b609636ae7588 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 16 Jan 2012 23:51:46 -0500 Subject: [PATCH] Fix crazy iframe css bug --- snipt/media/css/style.less | 3 +++ snipt/media/js/src/modules/snipt.js | 12 ++++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) 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() {