diff options
author | Yorhel <git@yorhel.nl> | 2014-12-01 18:32:21 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2014-12-01 18:33:07 +0100 |
commit | 473b0007bddb1bcd9df1d95a00029b69fa7060e2 (patch) | |
tree | fceeefeb880ad6cf0a3294a02924305ea33d0270 /lib/VNDB/Handler/Users.pm | |
parent | 44b11883da3a7e6f1138984ceeba162e0f90dc35 (diff) |
Replace some 'onclick' attributes with JS-generated events
I think this was the last piece of inline JS.
Diffstat (limited to 'lib/VNDB/Handler/Users.pm')
-rw-r--r-- | lib/VNDB/Handler/Users.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm index 09be3d34..cf55a605 100644 --- a/lib/VNDB/Handler/Users.pm +++ b/lib/VNDB/Handler/Users.pm @@ -673,7 +673,7 @@ sub notifies { my $code = $self->authGetCode("/u$uid/notifies"); if(@$list) { - form action => "/u$uid/notifies?r=$f->{r};formcode=$code", method => 'post'; + form action => "/u$uid/notifies?r=$f->{r};formcode=$code", method => 'post', id => 'notifies'; $self->htmlBrowse( items => $list, options => $f, @@ -698,7 +698,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', onclick => qq|javascript:location.href="/u$uid/notify/$l->{id}"|; + td class => 'tc5 clickable', id => "notify_$l->{id}"; lit mt '_usern_n_'.( $l->{ltype} eq 't' ? ($l->{subid} == 1 ? 't_new' : 't_reply') : 'item_edit'), |