summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-02-01 14:46:02 +0100
committerYorhel <git@yorhel.nl>2010-02-01 14:46:02 +0100
commit1dd46f31b7bc117d4a02515175b925bf1be2de92 (patch)
tree57278a1afa2d723a5996ad0872cf42c50f77dba9
parenta8f524e9380c415ffadb621fd96da49d5410a56a (diff)
Notifications: Added onclick event to the description column
More intuitive to allow clicking on that as well to open the notification.
-rw-r--r--data/style.css2
-rw-r--r--lib/VNDB/Handler/Users.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/data/style.css b/data/style.css
index e6963ad8..d93237f6 100644
--- a/data/style.css
+++ b/data/style.css
@@ -949,7 +949,7 @@ div.scr_uploader { visibility: hidden; overflow: hidden; width: 1px; height: 1px
.browse.notifies td.tc1 { width: 14px }
.browse.notifies td.tc3 { width: 90px }
.browse.notifies td.tc4 { width: 60px }
-.browse.notifies tbody td.tc5 { color: $grayedout$ }
+.browse.notifies tbody td.tc5 { color: $grayedout$; cursor: pointer }
.browse.notifies td.tc5 i { font-style: normal; color: $maintext$ }
.browse.notifies .unread td { font-weight: bold }
.browse.notifies tfoot td { padding: 0 0 0 25px }
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index d31d176b..16111add 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -590,7 +590,7 @@ sub notifies {
td class => 'tc4';
a href => "/u$uid/notify/$l->{id}", "$l->{ltype}$l->{iid}".($l->{subid}?".$l->{subid}":'');
end;
- td class => 'tc5';
+ td class => 'tc5', onclick => qq|javascript:location.href="/u$uid/notify/$l->{id}"|;
lit mt '_usern_n_'.(
$l->{ltype} eq 't' ? ($l->{subid} == 1 ? 't_new' : 't_reply')
: die("unknown notification type")),