From 41eded47d2f0e9b85a0da1f90691dbc83c49cabb Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 25 Nov 2013 11:05:42 -0500 Subject: [PATCH] Add link to show all streams when you are zoomed in. When your left sidebar is zoomed to show just one stream, there is a link to to show all streams again. (imported from commit 92f39b042168c443cbb9f524bf892557ef492551) --- static/js/stream_list.js | 6 ++++++ templates/zerver/left-sidebar.html | 1 + 2 files changed, 7 insertions(+) diff --git a/static/js/stream_list.js b/static/js/stream_list.js index af5f1b77bd..e1f4eff4e7 100644 --- a/static/js/stream_list.js +++ b/static/js/stream_list.js @@ -443,6 +443,12 @@ $(function () { previous_sort_order = undefined; }); + $('.show-all-streams').on('click', function (e) { + toggle_zoom(); + e.preventDefault(); + e.stopPropagation(); + }); + $('#stream_filters').on('dblclick', 'li .subscription_block', function (e) { if (!feature_flags.topic_zooming) { return; diff --git a/templates/zerver/left-sidebar.html b/templates/zerver/left-sidebar.html index e48e467042..182c0f6f65 100644 --- a/templates/zerver/left-sidebar.html +++ b/templates/zerver/left-sidebar.html @@ -13,6 +13,7 @@
+