Revision 68d15545
Von Jan Büren vor mehr als 1 Jahr hinzugefügt
SL/Presenter/Chart.pm | ||
---|---|---|
29 | 29 |
|
30 | 30 |
sub chart_picker { |
31 | 31 |
my ($name, $value, %params) = @_; |
32 |
|
|
33 | 32 |
$value = SL::DB::Manager::Chart->find_by(id => $value) if $value && !ref $value; |
34 | 33 |
my $id = delete($params{id}) || name_to_id($name); |
35 | 34 |
my $fat_set_item = delete $params{fat_set_item}; |
... | ... | |
40 | 39 |
|
41 | 40 |
my $ret = |
42 | 41 |
input_tag($name, (ref $value && $value->can('id') ? $value->id : ''), class => "@classes", type => 'hidden', id => $id) . |
43 |
join('', map { $params{$_} ? input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(type category choose booked)) . |
|
42 |
join('', map { $params{$_} ? input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(type category choose booked invalid)) .
|
|
44 | 43 |
input_tag("", (ref $value && $value->can('displayable_name')) ? $value->displayable_name : '', id => "${id}_name", %params); |
45 | 44 |
|
46 | 45 |
$::request->layout->add_javascripts('autocomplete_chart.js'); |
Auch abrufbar als: Unified diff
erste Idee: Ungültig für ChartPicker umgesetzt