Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision aee7eda0

Von Sven Schöling vor etwa 12 Jahren hinzugefügt

  • ID aee7eda02b6bf9c5661e729e933e15fb506b41cc
  • Vorgänger b6fd15a8
  • Nachfolger 0b2e3624

layout schnipsel für javascript initialisierung ins layout verschoben

Unterschiede anzeigen:

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