mirror of https://github.com/zulip/zulip.git
[staging] Double-clicking on stream row toggles its zoom level.
If you double-click on a stream that you've narrowed to, it will either zoom in or zoom out the left sidebar view. Zooming in shows just that stream; zooming out shows all streams. This is feature flagged to staging only. (imported from commit 6fdb3cacd68635f313f2a8a81edf2d6101cce2cb)
This commit is contained in:
parent
44f575c812
commit
fd9d48f6df
|
@ -443,6 +443,21 @@ $(function () {
|
|||
previous_sort_order = undefined;
|
||||
});
|
||||
|
||||
$('#stream_filters').on('dblclick', 'li .subscription_block', function (e) {
|
||||
if (!feature_flags.topic_zooming) {
|
||||
return;
|
||||
}
|
||||
|
||||
var stream = $(e.target).parents('li').attr('data-name');
|
||||
|
||||
if (stream === active_stream_name()) {
|
||||
toggle_zoom();
|
||||
}
|
||||
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
$('#stream_filters').on('click', 'li .subscription_block', function (e) {
|
||||
if (e.metaKey || e.ctrlKey) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue