diff options
| author | 2013-10-07 23:44:14 +0200 | |
|---|---|---|
| committer | 2013-10-07 23:44:14 +0200 | |
| commit | d9a658858076aa6dc392f38d3d8dcf5838af23b8 (patch) | |
| tree | 0fa9d2417152765e904d3b46ad42a56ecf524b43 /public/scripts | |
| parent | 85e057e79396750601d32a38f94a8fe63d8c3332 (diff) | |
Correction scroll vue globale
En scrollant en lisant une catégorie, en en ouvrant une autre, le scroll
se trouvait au même endroit qu'à la fin de la première catégorie
Diffstat (limited to 'public/scripts')
| -rw-r--r-- | public/scripts/global_view.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/scripts/global_view.js b/public/scripts/global_view.js index af91cb7a8..bc2254011 100644 --- a/public/scripts/global_view.js +++ b/public/scripts/global_view.js @@ -18,6 +18,11 @@ function load_panel(link) { $("#overlay").fadeIn(); $("#panel").slideToggle(); + // force le démarrage du scroll en haut. + // Sans ça, si l'on scroll en lisant une catégorie par exemple, + // en en ouvrant une autre ensuite, on se retrouve au même point de scroll + $("#panel").scrollTop (0); + panel_loading = false; }); } |
