From 24b3b0cdfc566be18925498993f894097a3d98bb Mon Sep 17 00:00:00 2001 From: Marien Fressinaud Date: Sun, 18 Aug 2013 12:12:30 +0200 Subject: Amélioration marquage des articles au défilement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Un petit bug faisait qu'un article marqué comme lu pouvait repasser en non lu même en mettant le paramètre "only_not_read" à true pour la fonction mark_read. --- app/views/javascript/main.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/javascript/main.phtml') diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 93d45e6ae..4c128b082 100644 --- a/app/views/javascript/main.phtml +++ b/app/views/javascript/main.phtml @@ -74,7 +74,7 @@ function mark_read (active, only_not_read) { if (active.hasClass ("not_read")) { active.removeClass ("not_read"); - } else { + } else if(only_not_read !== true || active.hasClass("not_read")) { active.addClass ("not_read"); } }); -- cgit v1.2.3