Don't show the stream list on Humbug for MIT.

(imported from commit d9f952aaeb910a7c57ce1174141686331224c8c0)
This commit is contained in:
Luke Faraone
2013-02-08 11:58:08 -05:00
parent 686c709788
commit fd1d790b72
3 changed files with 22 additions and 2 deletions

View File

@@ -259,6 +259,12 @@ function resizehandler(e) {
$(function () {
// When the user's profile picture loads this can change the height of the sidebar
$("img.gravatar-profile").bind('load', resizehandler);
// We don't have a stream list at MIT.
if (domain === "mit.edu") {
$("#stream_filters").remove();
$("#stream_filters_sep").remove();
}
});
var old_label;
@@ -873,6 +879,18 @@ function sort_narrow_list() {
exports.add_narrow_filter = function(name, type, uri) {
var list_item;
/*
* We don't give MIT a stream list currently since that would likely be
* overwhelming for users given the vast number of streams MIT users are
* commonly subscribed to.
*
* This will not be as much of an issue once we do prioritization of streams
* in the list.
*/
if (domain === "mit.edu" && type === "stream") {
return false;
}
if ($("#" + type + "_filters li[data-name='" + encodeURIComponent(name) + "']").length) {
// already exists
return false;