diff options
author | Yorhel <git@yorhel.nl> | 2015-09-20 21:08:54 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2015-09-20 21:08:54 +0200 |
commit | b5c3aa020836541ef2e94812ab83e73de364abe4 (patch) | |
tree | 1f9d2a259b05ecbc3d3ebebdcfddd57edeed2c2e /lib/VNDB/Handler/ULists.pm | |
parent | 3070caa6043101bae8fddc297c4152a2f3832b29 (diff) |
formValidate(): Let's just allow a '0' id - fix more errors
Looks like 0 is actually used often to indicate some special value.
Affects basically all 'check all' boxes (had to modify some of those
boxes because some used -1, but that wasn't a problem).
Diffstat (limited to 'lib/VNDB/Handler/ULists.pm')
-rw-r--r-- | lib/VNDB/Handler/ULists.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/ULists.pm b/lib/VNDB/Handler/ULists.pm index 5d4fdcf8..b2e84ac3 100644 --- a/lib/VNDB/Handler/ULists.pm +++ b/lib/VNDB/Handler/ULists.pm @@ -201,7 +201,7 @@ sub votelist { $own ? (footer => sub { Tr; td colspan => 3, class => 'tc1'; - input type => 'checkbox', class => 'checkall', name => 'vid', value => -1; + input type => 'checkbox', class => 'checkall', name => 'vid', value => 0; txt ' '; Select name => 'batchedit', id => 'batchedit'; option value => -2, '-- with selected --'; @@ -488,8 +488,8 @@ sub _vnlist_browse { $own ? (footer => sub { Tr; - td class => 'tc1'; input type => 'checkbox', name => 'vid', value => -1, class => 'checkall'; end; - td class => 'tc2'; input type => 'checkbox', name => 'rid', value => -1, class => 'checkall'; end; + td class => 'tc1'; input type => 'checkbox', name => 'vid', value => 0, class => 'checkall'; end; + td class => 'tc2'; input type => 'checkbox', name => 'rid', value => 0, class => 'checkall'; end; td class => 'tc3_6', colspan => 4; Select id => 'vns', name => 'vns'; option value => -2, mt '_rlist_withvn'; |