diff options
| author | 2013-11-17 15:23:48 -0500 | |
|---|---|---|
| committer | 2013-11-17 15:26:20 -0500 | |
| commit | ff1803e61aea1fbec607cf11acebf4106f5bbdc9 (patch) | |
| tree | 04be51aa9917c17850deb6142c4459cdc9478778 /public/scripts | |
| parent | d0a7c1e0235106609ac754c5c6e6cb481a32a9a8 (diff) | |
Ajout d'un raccourci pour refermer un article.
https://github.com/marienfressinaud/FreshRSS/issues/256
Diffstat (limited to 'public/scripts')
| -rw-r--r-- | public/scripts/main.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/public/scripts/main.js b/public/scripts/main.js index 2794e2913..b798f918c 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -214,6 +214,10 @@ function next_entry() { } } +function collapse_entry() { + $(".flux.active").removeClass("active"); +} + function inMarkViewport(flux, box_to_follow, relative_follow) { var top = flux.position().top; if (relative_follow) { @@ -319,6 +323,9 @@ function init_shortcuts() { }, { 'disable_in_input': true }); + shortcut.add(shortcuts.collapse_entry, function () { + collapse_entry(); + }); // Touches de navigation shortcut.add(shortcuts.prev_entry, prev_entry, { |
