From 10db1b30f11b4ea9d0d45f6328281157946cdbd0 Mon Sep 17 00:00:00 2001 From: Waseem Daher Date: Wed, 9 Jan 2013 15:29:44 -0500 Subject: [PATCH] Use cached selector for $(window). Mostly for consistency with the rest of the code around here. (imported from commit 87539fea96286e1563624efd2a4800df88f2199c) --- zephyr/static/js/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zephyr/static/js/ui.js b/zephyr/static/js/ui.js index d2d7507cba..e8ded192a7 100644 --- a/zephyr/static/js/ui.js +++ b/zephyr/static/js/ui.js @@ -133,7 +133,7 @@ function resizehandler(e) { sidebar_nav.width(''); } - $("#bottom_whitespace").height($(window).height() * 0.4); + $("#bottom_whitespace").height(viewport.height() * 0.4); $("#main_div").css('min-height', viewport.height()); // This function might run onReady (if we're in a narrow window),