From 85b6b551f22c2736d41b5dae643dc57b73d0f256 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Wed, 6 Feb 2013 15:24:44 -0500 Subject: [PATCH] Add a notion of "All messages" to the sidebar. (imported from commit 740711d1fa925055b26249071f79fc0b287d78c1) --- templates/zephyr/index.html | 1 + zephyr/static/js/narrow.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/templates/zephyr/index.html b/templates/zephyr/index.html index 5993d537b6..8b1f7aa74f 100644 --- a/templates/zephyr/index.html +++ b/templates/zephyr/index.html @@ -117,6 +117,7 @@ var people_list = [
{# Special-case this link so we don't actually go to page top. #}
  • Home ()
  • +
  • All messages ()
  • All private messages ()

  • diff --git a/zephyr/static/js/narrow.js b/zephyr/static/js/narrow.js index 6eb656e359..86918c309a 100644 --- a/zephyr/static/js/narrow.js +++ b/zephyr/static/js/narrow.js @@ -257,7 +257,9 @@ exports.activate = function (operators, opts) { $("ul.filters li").removeClass('active-filter'); if (operators.length === 1) { - if (operators[0][0] === "stream") { + if (operators[0][0] === 'in' && operators[0][1] === 'all') { + $('#filtall').addClass('active-filter'); + } else if (operators[0][0] === "stream") { $("#stream_filters li[data-name='" + encodeURIComponent(operators[0][1]) + "']").addClass('active-filter'); } else if (operators[0][0] === "is" && operators[0][1] === "private-message") { $("#filtpers").addClass('active-filter');