From d50b7034b8b802f8ff135a93fdffefe57c12d590 Mon Sep 17 00:00:00 2001 From: James Campos Date: Tue, 17 May 2011 01:59:41 -0700 Subject: [PATCH] fit height --- 4chan_x.js | 5 ++++- script.coffee | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/4chan_x.js b/4chan_x.js index 7e5c70377..f732486f6 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -2172,6 +2172,9 @@ case 'fit width': klass = 'fitwidth'; break; + case 'fit height': + klass = 'fitheight'; + break; case 'fit screen': klass = 'fitwidth fitheight'; } @@ -2204,7 +2207,7 @@ var controls, delform, imageType, option, select, _i, _len, _ref2; controls = $.el('div', { id: 'imgControls', - innerHTML: " " + innerHTML: " " }); imageType = $.getValue('imageType', 'full'); _ref2 = $$('option', controls); diff --git a/script.coffee b/script.coffee index 6f161cbd7..fb9930f76 100644 --- a/script.coffee +++ b/script.coffee @@ -1667,6 +1667,8 @@ imgExpand = klass = '' when 'fit width' klass = 'fitwidth' + when 'fit height' + klass = 'fitheight' when 'fit screen' klass = 'fitwidth fitheight' d.body.className = klass @@ -1693,7 +1695,7 @@ imgExpand = controls = $.el 'div', id: 'imgControls' innerHTML: - " + " " imageType = $.getValue 'imageType', 'full' for option in $$ 'option', controls