From f9067c07f544c5cef5f35eaad4b059e23eb94ac8 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Wed, 29 Jun 2011 19:28:48 -0700 Subject: [PATCH] Fix an assumption in the ad check to handle AdBlock for Chrome. This fixes the bug where the submit page initializes unsuccessfully, causing link posts to be accidentally submitted as text posts. --- r2/r2/templates/ads.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/templates/ads.html b/r2/r2/templates/ads.html index f2106722e..e5c1a2744 100644 --- a/r2/r2/templates/ads.html +++ b/r2/r2/templates/ads.html @@ -37,7 +37,7 @@ %> $(function() { var ad = $("#ad-frame"); - if(ad.height() == 0 || ad.width() == 0 || ad.offset().left == 0) { + if(!ad.length || ad.height() == 0 || ad.width() == 0 || ad.offset().left == 0) { $(".footer").append(""); }