Revision b58bafbb
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
218 | 218 |
sub edit_form { |
219 | 219 |
my ($self) = @_; |
220 | 220 |
|
221 |
$::request->layout->use_javascript("${_}.js") for qw(autocomplete_part); |
|
222 |
|
|
223 | 221 |
$self->render('client_config/form', title => t8('Client Configuration'), |
224 | 222 |
make_chart_title => sub { $_[0]->accno . '--' . $_[0]->description }, |
225 | 223 |
make_templates_value => sub { 'templates/' . $_[0] }, |
SL/Controller/Part.pm | ||
---|---|---|
60 | 60 |
} |
61 | 61 |
|
62 | 62 |
sub action_test_page { |
63 |
$::request->{layout}->add_javascripts('autocomplete_part.js'); |
|
64 |
|
|
65 | 63 |
$_[0]->render('part/test_page'); |
66 | 64 |
} |
67 | 65 |
|
SL/Controller/RequirementSpecOrder.pm | ||
---|---|---|
193 | 193 |
my ($self) = @_; |
194 | 194 |
|
195 | 195 |
$::auth->assert('requirement_spec_edit'); |
196 |
$::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu requirement_spec autocomplete_part);
|
|
196 |
$::request->{layout}->use_stylesheet("${_}.css") for qw(jquery.contextMenu requirement_spec); |
|
197 | 197 |
$::request->{layout}->use_javascript("${_}.js") for qw(jquery.jstree jquery/jquery.contextMenu client_js requirement_spec); |
198 | 198 |
|
199 | 199 |
return 1; |
SL/Form.pm | ||
---|---|---|
476 | 476 |
$layout->use_javascript("$_.js") for (qw( |
477 | 477 |
jquery jquery-ui jquery.cookie jquery.checkall jquery.download |
478 | 478 |
jquery/jquery.form jquery/fixes client_js |
479 |
common part_selection switchmenuframe autocomplete_part
|
|
479 |
common part_selection switchmenuframe |
|
480 | 480 |
), "jquery/ui/i18n/jquery.ui.datepicker-$::myconfig{countrycode}"); |
481 | 481 |
|
482 | 482 |
$self->{favicon} ||= "favicon.ico"; |
SL/Presenter/Part.pm | ||
---|---|---|
40 | 40 |
join('', map { $params{$_} ? $self->input_tag("", delete $params{$_}, id => "${id}_${_}", type => 'hidden') : '' } qw(column type unit convertible_unit)) . |
41 | 41 |
$self->input_tag("", (ref $value && $value->can('description')) ? $value->description : '', id => "${id}_name", %params); |
42 | 42 |
|
43 |
$::request->layout->add_javascripts('autocomplete_part.js'); |
|
43 | 44 |
$::request->presenter->need_reinit_widgets($id); |
44 | 45 |
|
45 | 46 |
$self->html_tag('span', $ret, class => 'part_picker'); |
Auch abrufbar als: Unified diff
PartPicker: javascript direkt im P.part_picker adden.