Revision 40a0907f
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/PriceSource.pm | ||
---|---|---|
5 | 5 |
use parent qw(SL::Controller::Base); |
6 | 6 |
|
7 | 7 |
use List::MoreUtils qw(any uniq apply); |
8 |
use SL::ClientJS; |
|
9 | 8 |
use SL::Locale::String qw(t8); |
10 | 9 |
use SL::PriceSource; |
11 | 10 |
|
12 | 11 |
use Rose::Object::MakeMethods::Generic |
13 | 12 |
( |
14 | 13 |
scalar => [ qw(record_item) ], |
15 |
'scalar --get_set_init' => [ qw(js record) ],
|
|
14 |
'scalar --get_set_init' => [ qw(record) ], |
|
16 | 15 |
); |
17 | 16 |
|
18 | 17 |
__PACKAGE__->run_before('check_auth'); |
... | ... | |
53 | 52 |
# $self->js->show('#dialog_flash_error'); |
54 | 53 |
# } |
55 | 54 |
|
56 |
$self->js->render($self);
|
|
55 |
$self->js->render; |
|
57 | 56 |
} |
58 | 57 |
|
59 | 58 |
|
... | ... | |
65 | 64 |
$::auth->assert('edit_prices'); |
66 | 65 |
} |
67 | 66 |
|
68 |
sub init_js { |
|
69 |
SL::ClientJS->new |
|
70 |
} |
|
71 |
|
|
72 | 67 |
sub init_record { |
73 | 68 |
_make_record(); |
74 | 69 |
} |
Auch abrufbar als: Unified diff
PriceSource: js accessor angepasst