]> git.wh0rd.org Git - tt-rss.git/commitdiff
toggleMark, togglePub: abort when there is no image to work on
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 26 Jan 2009 05:20:56 +0000 (06:20 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 26 Jan 2009 05:20:56 +0000 (06:20 +0100)
viewfeed.js

index 0be41d7762ac16cce4828f8b2d7bf868702ddee8..52f0e8add82a16844b891420e42190ad6809cb87 100644 (file)
@@ -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);