diff options
author | Yorhel <git@yorhel.nl> | 2011-04-08 18:41:54 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-04-08 18:41:54 +0200 |
commit | c0b8fb4a60dda06bbe306273de8ac0cd92156fd6 (patch) | |
tree | c848bcb228b118d5fac8d8ccf99e1b05163a5d43 /lib | |
parent | 9c0a0b51a115ab95fc4d78bf52d5785d6088ee85 (diff) |
Added 'select' all to wishlist and moved 'select all' down on notifies
For consistency
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VNDB/Handler/ULists.pm | 3 | ||||
-rw-r--r-- | lib/VNDB/Handler/Users.pm | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm index 363c2262..1c82d982 100644 --- a/lib/VNDB/Handler/ULists.pm +++ b/lib/VNDB/Handler/ULists.pm @@ -239,6 +239,7 @@ sub wishlist { { post => 'sel', required => 0, default => 0, multi => 1, template => 'int' }, { post => 'batchedit', required => 1, enum => [ -1, @{$self->{wishlist_status}} ] }, ); + $frm->{sel} = [ grep $_, @{$frm->{sel}} ]; # weed out "select all" checkbox if(!$frm->{_err} && @{$frm->{sel}} && $frm->{sel}[0]) { $self->dbWishListDel($uid, $frm->{sel}) if $frm->{batchedit} == -1; $self->dbWishListAdd($frm->{sel}, $uid, $frm->{batchedit}) if $frm->{batchedit} >= 0; @@ -303,6 +304,8 @@ sub wishlist { $own ? (footer => sub { Tr; td colspan => 3; + input type => 'checkbox', class => 'checkall', name => 'sel', value => 0; + txt ' '; Select name => 'batchedit', id => 'batchedit'; option mt '_wishlist_select'; optgroup label => mt '_wishlist_changeprio'; diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm index 75ddb547..6cedc734 100644 --- a/lib/VNDB/Handler/Users.pm +++ b/lib/VNDB/Handler/Users.pm @@ -611,7 +611,7 @@ sub notifies { class => 'notifies', pageurl => "/u$uid/notifies?r=$f->{r}", header => [ - [ '<input type="checkbox" class="checkall" name="notifysel" value="0" />' ], + [ '' ], [ mt '_usern_col_type' ], [ mt '_usern_col_age' ], [ mt '_usern_col_id' ], @@ -639,6 +639,8 @@ sub notifies { footer => sub { Tr; td colspan => 5; + input type => 'checkbox', class => 'checkall', name => 'notifysel', value => 0; + txt ' '; input type => 'submit', name => 'markread', value => mt '_usern_but_markread'; input type => 'submit', name => 'remove', value => mt '_usern_but_remove'; b class => 'grayedout', ' '.mt '_usern_autodel'; |