瀏覽代碼

Add article auto-remove after clicking on the read link

Alexis Degrugillier 11 年之前
父節點
當前提交
adaec6176c
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 () {
 		var active = $(this).parents(".flux");
 		mark_read(active, false);
+		if (context['auto_remove_article']) {
+			active.remove();
+		}
 		return false;
 	});