Revision b5742d3c
Von Jan Büren vor etwa 1 Jahr hinzugefügt
SL/Presenter/Chart.pm | ||
---|---|---|
39 | 39 |
|
40 | 40 |
my $ret = |
41 | 41 |
input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => "@classes", type => 'hidden', id => $id) . |
42 |
join('', map { $params{$_} ? input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(type category choose booked invalid)) .
|
|
42 |
join('', map { $params{$_} ? input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(type category choose booked status)) .
|
|
43 | 43 |
input_tag("", (ref $value && $value->can('displayable_name')) ? $value->displayable_name : '', id => "${id}_name", %params); |
44 | 44 |
|
45 | 45 |
$::request->layout->add_javascripts('autocomplete_chart.js'); |
... | ... | |
161 | 161 |
Without fat_set_item only the variables id and name (displayable name) are |
162 | 162 |
available. |
163 | 163 |
|
164 |
=item * status |
|
165 |
|
|
166 |
If C<%params> contains C<status> only charts of this status will be used |
|
167 |
for autocompletion. C<status> can be one of the following strings: |
|
168 |
C<valid>, C<invalid> or C<all>. C<valid> is the default if C<status> is |
|
169 |
not given. |
|
170 |
|
|
164 | 171 |
=back |
165 | 172 |
|
166 | 173 |
C<chart_picker> will register its javascript for inclusion in the next header |
Auch abrufbar als: Unified diff
Drei Status für chart eingeführt: valid, invalid, all (POD erg.)