Revision 6be015fa
Von Sven Schöling vor fast 15 Jahren hinzugefügt
bin/mozilla/ic.pl | ||
---|---|---|
2010 | 2010 |
$lxdebug->leave_sub(); |
2011 | 2011 |
} |
2012 | 2012 |
|
2013 |
sub ajax_autocomplete { |
|
2014 |
$main::lxdebug->enter_sub(); |
|
2015 |
|
|
2016 |
my $form = $main::form; |
|
2017 |
my %myconfig = %main::myconfig; |
|
2018 |
|
|
2019 |
$form->{column} ||= 'description'; |
|
2020 |
$form->{$form->{column}} = $form->{q} || ''; |
|
2021 |
$form->{limit} = ($form->{limit} * 1) || 10; |
|
2022 |
$form->{searchitems} ||= ''; |
|
2023 |
|
|
2024 |
my @results = IC->all_parts(\%myconfig, $form); |
|
2025 |
|
|
2026 |
print $form->ajax_response_header(), |
|
2027 |
$form->parse_html_template('ic/ajax_autocomplete'); |
|
2028 |
|
|
2029 |
$main::lxdebug->leave_sub(); |
|
2030 |
} |
|
2031 |
|
|
2013 | 2032 |
sub continue { call_sub($form->{"nextsub"}); } |
Auch abrufbar als: Unified diff
Feature Branch: Autocompletion.