From dc4b933b9b8b6cc61cb00ab3505ed775afed52b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 16 Oct 2012 15:31:12 +0200 Subject: [PATCH] =?utf8?q?Layouts=20stellen=20jetzt=20sicher=20dass=20ihre?= =?utf8?q?=20ben=C3=B6tigten=20Javascripte=20und=20Stylesheets=20mit=20aus?= =?utf8?q?geliefert=20werden?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Layout/MenuLeft.pm | 6 +++++- SL/Layout/None.pm | 7 +++++++ SL/Layout/Top.pm | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/SL/Layout/MenuLeft.pm b/SL/Layout/MenuLeft.pm index d78f0e6e0..6764e2fe9 100644 --- a/SL/Layout/MenuLeft.pm +++ b/SL/Layout/MenuLeft.pm @@ -8,7 +8,7 @@ use URI; use List::MoreUtils qw(apply); sub stylesheets { - qw(css/icons16.css css/icons24.css) + qw(icons16.css icons24.css menu.css) } sub javascripts_inline { @@ -19,6 +19,10 @@ sub javascripts_inline { ) } +sub javascripts { + 'js/jquery.cookie.js'; +} + sub pre_content { "
\n"; } diff --git a/SL/Layout/None.pm b/SL/Layout/None.pm index 1c990ac93..9fbd0aca0 100644 --- a/SL/Layout/None.pm +++ b/SL/Layout/None.pm @@ -8,6 +8,13 @@ sub javascripts_inline { _setup_focus(), } +sub javascripts { + 'js/common.js' +} + +sub stylesheets { + 'main' +} sub _setup_formats { $::form->parse_html_template('layout/javascript_setup') diff --git a/SL/Layout/Top.pm b/SL/Layout/Top.pm index 533977450..36170b8fe 100644 --- a/SL/Layout/Top.pm +++ b/SL/Layout/Top.pm @@ -13,7 +13,7 @@ sub pre_content { } sub stylesheets { -# 'frame_header/header.css'; + 'frame_header/header.css'; } 1; -- 2.20.1