layout schnipsel für javascript initialisierung ins layout verschoben
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 16 Oct 2012 11:13:22 +0000 (13:13 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 17 Oct 2012 14:03:19 +0000 (16:03 +0200)
SL/Layout/None.pm
templates/webpages/generic/focus_setup.html [deleted file]
templates/webpages/generic/javascript_setup.html [deleted file]
templates/webpages/layout/focus_setup.html [new file with mode: 0644]
templates/webpages/layout/javascript_setup.html [new file with mode: 0644]

index 57b9966..1c990ac 100644 (file)
@@ -10,12 +10,12 @@ sub javascripts_inline {
 
 
 sub _setup_formats {
-  $::form->parse_html_template('generic/javascript_setup')
+  $::form->parse_html_template('layout/javascript_setup')
 }
 
 sub _setup_focus {
   if ($::request->{layout}->focus || $::form->{fokus}) {
-    return $::form->parse_html_template('generic/focus_setup', {
+    return $::form->parse_html_template('layout/focus_setup', {
       focus => $::request->{layout}->focus,
       fokus => $::form->{fokus},
     })
diff --git a/templates/webpages/generic/focus_setup.html b/templates/webpages/generic/focus_setup.html
deleted file mode 100644 (file)
index 22bb2a2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-function fokus(){ [% IF focus %]$('[% focus %]').focus()[% ELSE %][% fokus %].focus()[% END %] }
diff --git a/templates/webpages/generic/javascript_setup.html b/templates/webpages/generic/javascript_setup.html
deleted file mode 100644 (file)
index 49ecb0a..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-[%- USE T8 %]
-$(function() {
-  setupPoints('[% myconfig.numberformat %]', '[% 'wrongformat' | $T8 %]');
-  setupDateFormat('[% myconfig.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
-})
diff --git a/templates/webpages/layout/focus_setup.html b/templates/webpages/layout/focus_setup.html
new file mode 100644 (file)
index 0000000..22bb2a2
--- /dev/null
@@ -0,0 +1 @@
+function fokus(){ [% IF focus %]$('[% focus %]').focus()[% ELSE %][% fokus %].focus()[% END %] }
diff --git a/templates/webpages/layout/javascript_setup.html b/templates/webpages/layout/javascript_setup.html
new file mode 100644 (file)
index 0000000..49ecb0a
--- /dev/null
@@ -0,0 +1,5 @@
+[%- USE T8 %]
+$(function() {
+  setupPoints('[% myconfig.numberformat %]', '[% 'wrongformat' | $T8 %]');
+  setupDateFormat('[% myconfig.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
+})