summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/Traits.pm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2014-12-01 18:32:21 +0100
committerYorhel <git@yorhel.nl>2014-12-01 18:33:07 +0100
commit473b0007bddb1bcd9df1d95a00029b69fa7060e2 (patch)
treefceeefeb880ad6cf0a3294a02924305ea33d0270 /lib/VNDB/Handler/Traits.pm
parent44b11883da3a7e6f1138984ceeba162e0f90dc35 (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/Traits.pm')
-rw-r--r--lib/VNDB/Handler/Traits.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm
index 6cad44a0..5fff855d 100644
--- a/lib/VNDB/Handler/Traits.pm
+++ b/lib/VNDB/Handler/Traits.pm
@@ -98,9 +98,9 @@ sub traitpage {
p class => 'browseopts';
# Q: tagp!? A: lazyness >_>
- a href => "/i$trait?m=0", $f->{m} == 0 ? (class => 'optselected') : (), onclick => "setCookie('tagspoil', 0);return true;", mt '_tagp_spoil0';
- a href => "/i$trait?m=1", $f->{m} == 1 ? (class => 'optselected') : (), onclick => "setCookie('tagspoil', 1);return true;", mt '_tagp_spoil1';
- a href => "/i$trait?m=2", $f->{m} == 2 ? (class => 'optselected') : (), onclick => "setCookie('tagspoil', 2);return true;", mt '_tagp_spoil2';
+ a href => "/i$trait?m=0", $f->{m} == 0 ? (class => 'optselected') : (), id => 'tagspoil_0', mt '_tagp_spoil0';
+ a href => "/i$trait?m=1", $f->{m} == 1 ? (class => 'optselected') : (), id => 'tagspoil_1', mt '_tagp_spoil1';
+ a href => "/i$trait?m=2", $f->{m} == 2 ? (class => 'optselected') : (), id => 'tagspoil_2', mt '_tagp_spoil2';
end;
a id => 'filselect', href => '#c';