Sfoglia il codice sorgente

Add article auto-remove after clicking on the read link

Alexis Degrugillier 11 anni fa
parent
commit
adaec6176c
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      p/scripts/main.js

+ 3 - 0
p/scripts/main.js

@@ -690,6 +690,9 @@ function init_stream(divStream) {
 	divStream.on('click', '.flux a.read', function () {
 	divStream.on('click', '.flux a.read', function () {
 		var active = $(this).parents(".flux");
 		var active = $(this).parents(".flux");
 		mark_read(active, false);
 		mark_read(active, false);
+		if (context['auto_remove_article']) {
+			active.remove();
+		}
 		return false;
 		return false;
 	});
 	});