summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-06-18 16:00:03 +0300
committerAndrew Dolgov <[email protected]>2015-06-18 16:00:03 +0300
commit5a45821ec9132de96396f1855024896eb3dcc389 (patch)
tree2052c8d35f1ad9d35d506a7748defd1d8295116c
parent0f037312a0fb3ab910fe2880cbcc35972ca9e694 (diff)
prevent event propagation when clicking on CDM article footer
-rw-r--r--classes/feeds.php2
-rw-r--r--js/viewfeed.js4
2 files changed, 5 insertions, 1 deletions
diff --git a/classes/feeds.php b/classes/feeds.php
index 37a7cc89f..9dccdbc83 100644
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -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);
diff --git a/js/viewfeed.js b/js/viewfeed.js
index ea8150070..e346b2967 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