]> git.wh0rd.org Git - tt-rss.git/commitdiff
disable pub/mark effects in CDM
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 20 Aug 2007 07:59:18 +0000 (08:59 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 20 Aug 2007 07:59:18 +0000 (08:59 +0100)
viewfeed.js

index d9f2ce50bf6c83200e86a6da2f23b25421d69ad3..b507b62e854692b4374381e9ef460af58e22faaa 100644 (file)
@@ -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");