Browse Source

Change click behaviour on articles #2

https://github.com/marienfressinaud/FreshRSS/issues/473
https://github.com/marienfressinaud/FreshRSS/pull/474/files
Alexandre Alapetite 12 years ago
parent
commit
60f73f53c4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      p/scripts/main.js

+ 1 - 1
p/scripts/main.js

@@ -604,7 +604,7 @@ function init_shortcuts() {
 
 
 function init_stream(divStream) {
 function init_stream(divStream) {
 	divStream.on('click', '.flux_header,.flux_content', function (e) {	//flux_toggle
 	divStream.on('click', '.flux_header,.flux_content', function (e) {	//flux_toggle
-		if ($(e.target).parents('.content').length > 0) {
+		if ($(e.target).closest('.content').length > 0) {
 			return;
 			return;
 		}
 		}
 		if ($(e.target).closest('.item.website, .item.link').length > 0) {
 		if ($(e.target).closest('.item.website, .item.link').length > 0) {