From b17fecbf06f233fecdb577fef20f294ca6ce705d Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Mon, 25 Sep 2017 14:54:50 -0700 Subject: [PATCH] Turn off more-topics features temporarily. The features turned off by this commit require a bit more CSS polish before we deploy them. This commit should be reverted to turn elements back on. --- static/js/topic_list.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/static/js/topic_list.js b/static/js/topic_list.js index 9043ccf8b0..5b8a0bb6e9 100644 --- a/static/js/topic_list.js +++ b/static/js/topic_list.js @@ -2,6 +2,11 @@ var topic_list = (function () { var exports = {}; +// Once we are ready to clean up CSS for some of the features +// hidden by this flag, we should just revert the whole commit +// here (do `git blame` on this line). +waiting_on_css_polish_for_more_topics = true; + // We can only ever have one active widget. var active_widget; @@ -151,17 +156,26 @@ exports.widget = function (parent_elem, my_stream_id) { self.show_spinner = function () { // The spinner will go away once we get results and redraw // the whole list. + if (waiting_on_css_polish_for_more_topics) { + return; + } var spinner = self.dom.find('.searching-for-more-topics'); spinner.show(); }; self.show_no_more_topics = function () { + if (waiting_on_css_polish_for_more_topics) { + return; + } var elem = self.dom.find('.no-more-topics-found'); elem.show(); self.no_more_topics = true; }; self.show_help_link = function () { + if (waiting_on_css_polish_for_more_topics) { + return; + } var elem = self.dom.find('.sidebar-topics-help'); elem.show(); };