diff options
author | Yorhel <git@yorhel.nl> | 2008-11-26 14:10:42 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2008-11-26 14:10:42 +0100 |
commit | 16fe3375acf9eb17f519afd903ca07c6b9074e51 (patch) | |
tree | ff828f98baab4b0ce757e3c1afad91aac7dbe76e /lib/VNDB/Handler/VNEdit.pm | |
parent | 9e34ad419f6065ed35da563d006c471c14d0712c (diff) |
Javascript VN search for the relation editor
The dropdown search (ds* functions) is pretty generic, and could be
used for other things as well.
Diffstat (limited to 'lib/VNDB/Handler/VNEdit.pm')
-rw-r--r-- | lib/VNDB/Handler/VNEdit.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/VNDB/Handler/VNEdit.pm b/lib/VNDB/Handler/VNEdit.pm index 42689ea7..ce802e55 100644 --- a/lib/VNDB/Handler/VNEdit.pm +++ b/lib/VNDB/Handler/VNEdit.pm @@ -169,7 +169,7 @@ sub _form { ], 'Relations' => [ - [ input => short => 'relations', nolabel => 1, width => 700 ], + [ hidden => short => 'relations' ], [ static => nolabel => 1, content => sub { br;br; h2 'Selected relations'; @@ -258,7 +258,7 @@ sub vnxml { return 404 if $q->{_err}; $q = $q->{q}; - my($list, $np) = $self->dbVNGet( # / not implemented yet + my($list, $np) = $self->dbVNGet( $q =~ /^v([1-9]\d*)/ ? (id => $1) : (search => $q), results => 10, page => 1, @@ -268,7 +268,7 @@ sub vnxml { xml; tag 'vns', more => $np ? 'yes' : 'no', query => $q; for(@$list) { - tag 'vn', id => $_->{id}, $_->{title}; + tag 'item', id => $_->{id}, $_->{title}; } end; } |