From c2cf57007d67342f640d51eff04e39cef220129b Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Wed, 5 Oct 2011 15:31:57 -0700 Subject: [PATCH] Add missing preamble to framebuster. --- r2/r2/public/static/js/base.js | 2 +- r2/r2/templates/framebuster.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/r2/r2/public/static/js/base.js b/r2/r2/public/static/js/base.js index 5754abf1d..4a3301e32 100644 --- a/r2/r2/public/static/js/base.js +++ b/r2/r2/public/static/js/base.js @@ -1,4 +1,4 @@ -r = r || {} +r = window.r || {} $(function() { r.login.ui.init() diff --git a/r2/r2/templates/framebuster.html b/r2/r2/templates/framebuster.html index 40b78d903..37ddf4ced 100644 --- a/r2/r2/templates/framebuster.html +++ b/r2/r2/templates/framebuster.html @@ -5,6 +5,9 @@ escappit <% from r2.lib import js %> + ${unsafe(js.use('jquery', 'reddit'))}