summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2015-01-15 08:02:49 +0100
committerYorhel <git@yorhel.nl>2015-01-15 08:02:49 +0100
commit28756f1de306982adedbc4197519125506009a4b (patch)
tree5feef4b0d022eef8373bacf8ee4d61c6d53995bb
parentefecd717150a6ee8acdaf87b72bf2e5d0c8b3d1a (diff)
Double the limit of number of traits to a character
As per t2520.119 and t2520.120.
-rw-r--r--data/script.js2
-rw-r--r--lib/VNDB/Handler/Traits.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/data/script.js b/data/script.js
index ce66bc02..026d30f4 100644
--- a/data/script.js
+++ b/data/script.js
@@ -1732,7 +1732,7 @@ function ctrLoad() {
}
}
if(q.length > 0)
- ajax('/xml/traits.xml?r=100;'+q.join(';'), function (ht) {
+ ajax('/xml/traits.xml?r=200;'+q.join(';'), function (ht) {
var t = ht.responseXML.getElementsByTagName('item');
for(var i=0; i<t.length; i++)
ctrAdd(t[i], v[t[i].getAttribute('id')]);
diff --git a/lib/VNDB/Handler/Traits.pm b/lib/VNDB/Handler/Traits.pm
index 5fff855d..33bde43d 100644
--- a/lib/VNDB/Handler/Traits.pm
+++ b/lib/VNDB/Handler/Traits.pm
@@ -407,7 +407,7 @@ sub traitxml {
my $f = $self->formValidate(
{ get => 'q', required => 0, maxlength => 500 },
{ get => 'id', required => 0, multi => 1, template => 'int' },
- { get => 'r', required => 0, default => 15, template => 'int', min => 1, max => 100 },
+ { get => 'r', required => 0, default => 15, template => 'int', min => 1, max => 200 },
);
return $self->resNotFound if $f->{_err} || (!$f->{q} && !$f->{id} && !$f->{id}[0]);