From e323e97a9071dcae87fe13df96850eacd525fd08 Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 9 May 2011 00:13:15 -0700 Subject: [PATCH] + ui.winHeight, - ui.winWidth --- 4chan_x.js | 6 +++--- script.coffee | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 9f13b84dd..6968a8c8b 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -1718,7 +1718,8 @@ } } $.show(qp); - return ui.el = qp; + ui.el = qp; + return ui.winHeight = d.body.clientHeight; }, parse: function(req, id, threadID) { var body, html, op, qp, reply, _i, _len, _ref; @@ -1958,8 +1959,7 @@ el.src = this.parentNode.href; $.show(el); ui.el = el; - ui.winHeight = d.body.clientHeight; - return ui.winWidth = d.body.clientWidth; + return ui.winHeight = d.body.clientHeight; } } }; diff --git a/script.coffee b/script.coffee index 1f22b60fb..a469d31a9 100644 --- a/script.coffee +++ b/script.coffee @@ -1368,6 +1368,7 @@ quotePreview = g.requests[threadID] = $.get @href, (-> quotePreview.parse this, id, threadID) $.show qp ui.el = qp + ui.winHeight = d.body.clientHeight parse: (req, id, threadID) -> qp = $ '#qp' return unless qp.innerHTML is "Loading #{id}..." @@ -1519,7 +1520,6 @@ imageHover = $.show el ui.el = el ui.winHeight = d.body.clientHeight - ui.winWidth = d.body.clientWidth imgPreloading = init: ->