Prechádzať zdrojové kódy

Fix: click on feed title (#6452)

maTh 1 rok pred
rodič
commit
0940025980
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      p/scripts/main.js

+ 2 - 2
p/scripts/main.js

@@ -1081,7 +1081,7 @@ function init_stream(stream) {
 			return true;
 			return true;
 		}
 		}
 
 
-		el = ev.target.closest('.item .title > a');
+		el = ev.target.closest('.item a.title');
 		if (el) {	// Allow default control/command-click behaviour such as open in background-tab
 		if (el) {	// Allow default control/command-click behaviour such as open in background-tab
 			return ev.ctrlKey || ev.metaKey;
 			return ev.ctrlKey || ev.metaKey;
 		}
 		}
@@ -1189,7 +1189,7 @@ function init_stream(stream) {
 			return;
 			return;
 		}
 		}
 
 
-		let el = ev.target.closest('.item .title > a');
+		let el = ev.target.closest('.item a.title');
 		if (el) {
 		if (el) {
 			if (ev.which == 1) {
 			if (ev.which == 1) {
 				if (ev.ctrlKey) {	// Control+click
 				if (ev.ctrlKey) {	// Control+click