prevent event propagation when clicking on CDM article footer

This commit is contained in:
Andrew Dolgov 2015-06-18 16:00:03 +03:00
parent 0f037312a0
commit 5a45821ec9
2 changed files with 5 additions and 1 deletions

View 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);

View file

@ -2447,3 +2447,7 @@ function updateFloatingTitle(unread_only) {
exception_error("updateFloatingTitle", e);
}
}
function cdmFooterClick(event) {
event.stopPropagation();
}