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.
This commit is contained in:
Steve Howell 2017-09-25 14:54:50 -07:00 committed by Tim Abbott
parent 0b25d3125d
commit b17fecbf06

View File

@ -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();
};