From 7bb11fe09a3ec7f47369c4424eba9e41c28d24c5 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 10 Dec 2015 23:24:00 -0800 Subject: [PATCH] topic zoom: Clean up unnecessary jquery selectors. --- static/js/stream_list.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/js/stream_list.js b/static/js/stream_list.js index fa9c680480..93ec84315a 100644 --- a/static/js/stream_list.js +++ b/static/js/stream_list.js @@ -89,8 +89,7 @@ function get_filter_li(type, name) { function zoom_in() { popovers.hide_all(); zoomed_to_topics = true; - $("#streams_list").expectOne().removeClass("zoom-out"); - $("#streams_list").expectOne().addClass("zoom-in"); + $("#streams_list").expectOne().removeClass("zoom-out").addClass("zoom-in"); zoomed_stream = active_stream_name(); $("#stream_filters li.narrow-filter").each(function () { @@ -107,8 +106,7 @@ function zoom_in() { function zoom_out() { popovers.hide_all(); zoomed_to_topics = false; - $("#streams_list").expectOne().removeClass("zoom-in"); - $("#streams_list").expectOne().addClass("zoom-out"); + $("#streams_list").expectOne().removeClass("zoom-in").addClass("zoom-out"); $("#stream_filters li.narrow-filter").show(); }