]> git.wh0rd.org Git - tt-rss.git/commitdiff
prevent event propagation when clicking on CDM article footer
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 18 Jun 2015 13:00:03 +0000 (16:00 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 18 Jun 2015 13:00:03 +0000 (16:00 +0300)
classes/feeds.php
js/viewfeed.js

index 37a7cc89f671e7fe7b64f8f0b61e8cb0f8cb3308..9dccdbc83766dd8da2d3543c789ea53ce0ee0943 100644 (file)
@@ -687,7 +687,7 @@ class Feeds extends Handler_Protected {
 
                                        $reply['content'] .= "</div>";
 
-                                       $reply['content'] .= "<div class=\"cdmFooter\">";
+                                       $reply['content'] .= "<div class=\"cdmFooter\" onclick=\"cdmFooterClick(event)\">";
 
                                        foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_LEFT_BUTTON) as $p) {
                                                $reply['content'] .= $p->hook_article_left_button($line);
index ea8150070536b59f5bcd5c0514d66d8eb7a879ba..e346b2967ee46249287c8ff73450b83b7e935357 100644 (file)
@@ -2447,3 +2447,7 @@ function updateFloatingTitle(unread_only) {
                exception_error("updateFloatingTitle", e);
        }
 }
+
+function cdmFooterClick(event) {
+       event.stopPropagation();
+}
\ No newline at end of file