diff options
| author | 2013-08-18 12:12:30 +0200 | |
|---|---|---|
| committer | 2013-08-18 12:12:30 +0200 | |
| commit | 24b3b0cdfc566be18925498993f894097a3d98bb (patch) | |
| tree | 37d53f17ee6731ecf9ce866d4f36ef226bac3022 /app/views/javascript | |
| parent | 29873ed1efc83e23e44cfe33984374c791fccc35 (diff) | |
Amélioration marquage des articles au défilement
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.
Diffstat (limited to 'app/views/javascript')
| -rw-r--r-- | app/views/javascript/main.phtml | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } }); |
