From 5a45821ec9132de96396f1855024896eb3dcc389 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Jun 2015 16:00:03 +0300 Subject: [PATCH] prevent event propagation when clicking on CDM article footer --- classes/feeds.php | 2 +- js/viewfeed.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/classes/feeds.php b/classes/feeds.php index 37a7cc89..9dccdbc8 100644 --- a/classes/feeds.php +++ b/classes/feeds.php @@ -687,7 +687,7 @@ class Feeds extends Handler_Protected { $reply['content'] .= ""; - $reply['content'] .= "
"; + $reply['content'] .= "
"; foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ARTICLE_LEFT_BUTTON) as $p) { $reply['content'] .= $p->hook_article_left_button($line); diff --git a/js/viewfeed.js b/js/viewfeed.js index ea815007..e346b296 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -2447,3 +2447,7 @@ function updateFloatingTitle(unread_only) { exception_error("updateFloatingTitle", e); } } + +function cdmFooterClick(event) { + event.stopPropagation(); +} \ No newline at end of file -- 2.39.2