diff options
| author | 2014-02-03 08:48:16 +0100 | |
|---|---|---|
| committer | 2014-02-03 08:48:16 +0100 | |
| commit | 2c6d010dbae050d8ba140e69ecff3376b36d039f (patch) | |
| tree | 1fb7aa276049d802980b9c4ade88f49dacaedc3c | |
| parent | 9aab83af115de3b210ea41caae49b70a0f82492a (diff) | |
Ne pas boucler à la fin de la navigation dans les articles
Corrige https://github.com/marienfressinaud/FreshRSS/issues/407
Alternative à https://github.com/marienfressinaud/FreshRSS/pull/409 qui conserve le fait que l'article se ferme, et plus simple.
| -rw-r--r-- | p/scripts/main.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index f0d2bbf7b..48386b1d6 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -172,12 +172,14 @@ function mark_favorite(active) { } function toggleContent(new_active, old_active) { - old_active.removeClass("active").removeClass("current"); + old_active.removeClass("active"); if (new_active.length === 0) { return; } + old_active.removeClass("current"); + if (does_lazyload) { new_active.find('img[data-original], iframe[data-original]').each(function () { this.setAttribute('src', this.getAttribute('data-original')); |
