From 35ce314bfb376b87c8b59410f59f96683640f958 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 1 Mar 2011 13:30:38 -0800 Subject: [PATCH] Hide context entries in threaded lists; it's redundant (and if there's more than a few messages, we have the context link still :D) Also hides them via CSS for new ajax additions --- lib/threadednoticelist.php | 10 ++++++++++ theme/base/css/display.css | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/lib/threadednoticelist.php b/lib/threadednoticelist.php index a3e5f62a59..1298f179f9 100644 --- a/lib/threadednoticelist.php +++ b/lib/threadednoticelist.php @@ -147,6 +147,11 @@ class ThreadedNoticeListItem extends NoticeListItem { const INITIAL_ITEMS = 3; + function showContext() + { + // Silence! + } + /** * finish the notice * @@ -211,6 +216,11 @@ class ThreadedNoticeListSubItem extends NoticeListItem { // } + + function showContext() + { + // + } } /** diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 98345a0726..456d7be4b0 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -1136,6 +1136,11 @@ border-top-style:solid; .threaded-notices .notice-reply-comments { margin: 8px; } +.threaded-notices .response, +.threaded-notices .source { + /* Hide these for ajax/realtime sourced notices */ + display: none; +} /* NOTICES */ #notices_primary { float:left; -- 2.39.5