Browse Source

prevent event propagation when clicking on CDM article footer

Andrew Dolgov 4 years ago
parent
commit
5a45821ec9
2 changed files with 5 additions and 1 deletions
  1. 1 1
      classes/feeds.php
  2. 4 0
      js/viewfeed.js

+ 1 - 1
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);

+ 4 - 0
js/viewfeed.js

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