summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@controlyourself.ca>2009-07-25 17:37:37 +0000
committerSarven Capadisli <csarven@controlyourself.ca>2009-07-25 17:37:37 +0000
commite0b877b26c5e93809b2a53b6c46326d5e31fa0e8 (patch)
tree66f89d69e364909bbb93d8ab6eb312bb02d37001 /lib
parentf86faaf341ee6e6e8cfd264e1d645cc0d964d85b (diff)
Removed <dl> structure from NoticeListItem::showDeleteLink. Reason:
To speed up DOM load by cutting down 3 nodes in each notice list item. Generally each notice option should be a list item in a <ul>, however, there is no tangible benefit for the user using this approach. In this case, minimalism is favoured. Similarly, the new approach will make 5 fewer function calls on the server side.
Diffstat (limited to 'lib')
-rw-r--r--lib/noticelist.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/noticelist.php b/lib/noticelist.php
index 44726a17b..d4d4fc711 100644
--- a/lib/noticelist.php
+++ b/lib/noticelist.php
@@ -479,13 +479,9 @@ class NoticeListItem extends Widget
if ($user && $this->notice->profile_id == $user->id) {
$deleteurl = common_local_url('deletenotice',
array('notice' => $this->notice->id));
- $this->out->elementStart('dl', 'notice_delete');
- $this->out->element('dt', null, _('Delete this notice'));
- $this->out->elementStart('dd');
$this->out->element('a', array('href' => $deleteurl,
+ 'class' => 'notice_delete',
'title' => _('Delete this notice')), _('Delete'));
- $this->out->elementEnd('dd');
- $this->out->elementEnd('dl');
}
}