From: Andrew Dolgov Date: Mon, 26 Jan 2009 05:20:56 +0000 (+0100) Subject: toggleMark, togglePub: abort when there is no image to work on X-Git-Tag: git2svn-syncpoint-master~15 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=56ff7564477b7c72a8c82fd64b59fe53e3321470;p=tt-rss.git toggleMark, togglePub: abort when there is no image to work on --- diff --git a/viewfeed.js b/viewfeed.js index 0be41d77..52f0e8ad 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -535,6 +535,9 @@ function toggleMark(id, client_only, no_effects) { } var mark_img = document.getElementById("FMPIC-" + id); + + if (!mark_img) return; + var vfeedu = document.getElementById("FEEDU--1"); var crow = document.getElementById("RROW-" + id); @@ -586,6 +589,9 @@ function togglePub(id, client_only, no_effects) { } var mark_img = document.getElementById("FPPIC-" + id); + + if (!mark_img) return; + var vfeedu = document.getElementById("FEEDU--2"); var crow = document.getElementById("RROW-" + id);