Explorar o código

Force l'affichage d'un article lors du click

Alexis Degrugillier %!s(int64=12) %!d(string=hai) anos
pai
achega
7cc2fd6948
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      public/scripts/main.js

+ 3 - 0
public/scripts/main.js

@@ -393,6 +393,9 @@ function init_stream_delegates(divStream) {
 	divStream.on('click', '.flux_header>.item.title, .flux_header>.item.date', function (e) {	//flux_header_toggle
 	divStream.on('click', '.flux_header>.item.title, .flux_header>.item.date', function (e) {	//flux_header_toggle
 		var old_active = $(".flux.current"),
 		var old_active = $(".flux.current"),
 			new_active = $(this).parent().parent();
 			new_active = $(this).parent().parent();
+			console.log(isCollapsed);
+		isCollapsed = true;
+			console.log(isCollapsed);
 		if (e.target.tagName.toUpperCase() === 'A') {	//Leave real links alone
 		if (e.target.tagName.toUpperCase() === 'A') {	//Leave real links alone
 			if (auto_mark_article) {
 			if (auto_mark_article) {
 				mark_read(new_active, true);
 				mark_read(new_active, true);