Revision 98e679e3
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/Controller/Layout.pm | ||
---|---|---|
8 | 8 |
sub action_empty { |
9 | 9 |
my ($self) = @_; |
10 | 10 |
|
11 |
if ($::form->{format} eq 'json') { |
|
11 |
if ($::form->{format} eq 'json' || $::request->type eq 'json') {
|
|
12 | 12 |
my $layout = { |
13 | 13 |
pre_content => $::request->{layout}->pre_content, |
14 | 14 |
start_content => $::request->{layout}->start_content, |
... | ... | |
21 | 21 |
}; |
22 | 22 |
|
23 | 23 |
$self->render(\ SL::JSON::to_json($layout), { type => 'json', process => 0 }); |
24 |
} else { |
|
25 |
$self->render(\'', { process => 0 }); |
|
24 | 26 |
} |
25 | 27 |
} |
26 | 28 |
|
Auch abrufbar als: Unified diff
Layout/empty: empty.json und emty.html ermöglichen