Explorar o código

Ne pas déplier l'article lors du clic sur l'icône lien externe

Corrige
http://marienfressinaud.fr/index.php?article141/freshrss-0-7-ca-casse-et-ca-passe#c1391357481-1
Alexandre Alapetite %!s(int64=12) %!d(string=hai) anos
pai
achega
12247b2ce3
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      p/scripts/main.js

+ 3 - 3
p/scripts/main.js

@@ -443,7 +443,7 @@ function init_shortcuts() {
 
 
 function init_stream(divStream) {
 function init_stream(divStream) {
 	divStream.on('click', '.flux_header', function (e) {	//flux_header_toggle
 	divStream.on('click', '.flux_header', function (e) {	//flux_header_toggle
-		if ($(e.target).closest('.item.website > a').length > 0) {
+		if ($(e.target).closest('.item.website, .item.link').length > 0) {
 			return;
 			return;
 		}
 		}
 		var old_active = $(".flux.current"),
 		var old_active = $(".flux.current"),
@@ -470,7 +470,7 @@ function init_stream(divStream) {
 		return false;
 		return false;
 	});
 	});
 
 
-	divStream.on('click', '.item.title>a', function (e) {
+	divStream.on('click', '.item.title > a', function (e) {
 		if (e.ctrlKey) {
 		if (e.ctrlKey) {
 			return true;	//Allow default control-click behaviour such as open in backround-tab
 			return true;	//Allow default control-click behaviour such as open in backround-tab
 		}
 		}
@@ -483,7 +483,7 @@ function init_stream(divStream) {
 	});
 	});
 
 
 	if (auto_mark_site) {
 	if (auto_mark_site) {
-		divStream.on('click', '.flux .link a', function () {
+		divStream.on('click', '.flux .link > a', function () {
 			mark_read($(this).parent().parent().parent(), true);
 			mark_read($(this).parent().parent().parent(), true);
 		});
 		});
 	}
 	}