Revision 85556589
Von Tamino Steinert vor 10 Monaten hinzugefügt
SL/ClientJS.pm | ||
---|---|---|
196 | 196 |
return $self->_actions; |
197 | 197 |
} |
198 | 198 |
|
199 |
sub transfer_flash { |
|
200 |
my ($self) = @_; |
|
201 |
$self->flash(@$_) for SL::Helper::Flash->flash_contents; |
|
202 |
} |
|
203 |
|
|
199 | 204 |
sub render { |
200 | 205 |
my ($self, $controller) = @_; |
201 | 206 |
$controller ||= $self->controller; |
202 | 207 |
$self->reinit_widgets if $::request->presenter->need_reinit_widgets; |
208 |
$self->transfer_flash; |
|
203 | 209 |
return $controller->render(\$self->to_json, { type => 'json' }); |
204 | 210 |
} |
205 | 211 |
|
Auch abrufbar als: Unified diff
SL::ClientJS: Flash Inhalt auch bei Ajax Calls übergeben