From: Brion Vibber Date: Tue, 1 Mar 2011 21:30:38 +0000 (-0800) Subject: Hide context entries in threaded lists; it's redundant (and if there's more than... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=35ce314bfb376b87c8b59410f59f96683640f958;p=quix0rs-gnu-social.git 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 --- 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;