From 4710e3dc03ca8e03640d06fe0e2f0d28d31da32c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 22 Oct 2008 08:54:38 +0100 Subject: [PATCH] add (disabled) function to show original article inline in the content pane --- feedlist.js | 7 +++++++ functions.php | 14 ++++++++++++-- images/art-inline.png | Bin 0 -> 255 bytes tt-rss.css | 25 ------------------------- viewfeed.js | 36 ++++++++++++++++++++++++++++++++++++ 5 files changed, 55 insertions(+), 27 deletions(-) create mode 100644 images/art-inline.png diff --git a/feedlist.js b/feedlist.js index 22b8aeab..ff4ab7c5 100644 --- a/feedlist.js +++ b/feedlist.js @@ -428,6 +428,13 @@ function hide_footer_af(effect) { if (c) { c.style.bottom = "0px"; + + var ioa = document.getElementById("inline_orig_article"); + + if (ioa) { + ioa.height = c.offsetHeight; + } + } else { var h = document.getElementById("headlines-frame"); diff --git a/functions.php b/functions.php index 8ecf737d..b57087c0 100644 --- a/functions.php +++ b/functions.php @@ -4712,8 +4712,18 @@ if (!$zoom_mode) { print "$tags_str (+) - (+)"; + + if (defined('_ENABLE_INLINE_VIEW')) { + + print "Inline"; + + } + + print "Zoom"; diff --git a/images/art-inline.png b/images/art-inline.png new file mode 100644 index 0000000000000000000000000000000000000000..e18101f76f6f64b28349544ddd46f6e62ac49cfa GIT binary patch literal 255 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP;jHC zi(`m|;L%AJc@Hb_xGX#+bym%Q>97$~&LqAA9G-fU)^2uP{bjjp7tgn!iN{+$ycbPp zy%P2P`nH)DiesHMQ&*Wgsq`BzlTUK1k&}DVps;kwI*GTf9hDtS7CXPM6S&!N-dW^; zt+NUzL&Eu~8_On2?{Rg?ep^($>3SxsUBUN1Vhx*$&xOCd)5osOP(1Bv^|${mThsh( zI2$Xue;j9LJz>s&GDKlJ"; + + render_article(tmp); + + } + } + } }); + + } catch (e) { + exception_error("showOriginalArticleInline", e); + } +} + + function scrollArticle(offset) { try { if (!isCdmMode()) { -- 2.39.5