From: Andrew Dolgov Date: Mon, 20 Aug 2007 07:59:18 +0000 (+0100) Subject: disable pub/mark effects in CDM X-Git-Tag: 1.2.14~14 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ace1a6da76b54f8c62c2aa5a6bb0368f9080cb95;p=tt-rss.git disable pub/mark effects in CDM --- diff --git a/viewfeed.js b/viewfeed.js index d9f2ce50..b507b62e 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -411,8 +411,12 @@ function toggleMark(id) { vfeedu.innerHTML = (+vfeedu.innerHTML) - 1; } - Effect.Puff(mark_img, {duration : 0.25, afterFinish: tMark_afh_off}); - + if (document.getElementById("headlinesList")) { + Effect.Puff(mark_img, {duration : 0.25, afterFinish: tMark_afh_off}); + } else { + mark_img.src = "images/mark_unset.png"; + mark_img.alt = "Set mark"; + } } var vfeedctr = document.getElementById("FEEDCTR--1"); @@ -476,9 +480,13 @@ function togglePub(id) { if (vfeedu && crow.className.match("Unread")) { vfeedu.innerHTML = (+vfeedu.innerHTML) - 1; } - - Effect.Puff(mark_img, {duration : 0.25, afterFinish: tPub_afh_off}); + if (document.getElementById("headlinesList")) { + Effect.Puff(mark_img, {duration : 0.25, afterFinish: tPub_afh_off}); + } else { + mark_img.src = "images/pub_unset.png"; + mark_img.alt = "Publish"; + } } var vfeedctr = document.getElementById("FEEDCTR--2");