Revision aee7eda0
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
SL/Layout/None.pm | ||
---|---|---|
10 | 10 |
|
11 | 11 |
|
12 | 12 |
sub _setup_formats { |
13 |
$::form->parse_html_template('generic/javascript_setup')
|
|
13 |
$::form->parse_html_template('layout/javascript_setup')
|
|
14 | 14 |
} |
15 | 15 |
|
16 | 16 |
sub _setup_focus { |
17 | 17 |
if ($::request->{layout}->focus || $::form->{fokus}) { |
18 |
return $::form->parse_html_template('generic/focus_setup', {
|
|
18 |
return $::form->parse_html_template('layout/focus_setup', {
|
|
19 | 19 |
focus => $::request->{layout}->focus, |
20 | 20 |
fokus => $::form->{fokus}, |
21 | 21 |
}) |
templates/webpages/generic/focus_setup.html | ||
---|---|---|
1 |
function fokus(){ [% IF focus %]$('[% focus %]').focus()[% ELSE %][% fokus %].focus()[% END %] } |
templates/webpages/generic/javascript_setup.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
$(function() { |
|
3 |
setupPoints('[% myconfig.numberformat %]', '[% 'wrongformat' | $T8 %]'); |
|
4 |
setupDateFormat('[% myconfig.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]'); |
|
5 |
}) |
templates/webpages/layout/focus_setup.html | ||
---|---|---|
1 |
function fokus(){ [% IF focus %]$('[% focus %]').focus()[% ELSE %][% fokus %].focus()[% END %] } |
templates/webpages/layout/javascript_setup.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
$(function() { |
|
3 |
setupPoints('[% myconfig.numberformat %]', '[% 'wrongformat' | $T8 %]'); |
|
4 |
setupDateFormat('[% myconfig.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]'); |
|
5 |
}) |
Auch abrufbar als: Unified diff
layout schnipsel für javascript initialisierung ins layout verschoben