From 1245145122f88aff6cdc86eb55b4d092a21db4f3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 25 Oct 2012 16:38:51 +0200 Subject: [PATCH] Javascript und None Layouts verbessert MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Enthält Vorschläge von Ronny Kumke und behebt #2025 --- SL/Layout/Javascript.pm | 1 + SL/Layout/None.pm | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/SL/Layout/Javascript.pm b/SL/Layout/Javascript.pm index 6e6d6553d..a9a17481d 100644 --- a/SL/Layout/Javascript.pm +++ b/SL/Layout/Javascript.pm @@ -26,6 +26,7 @@ sub stylesheets { $_[0]->add_stylesheets(qw( dhtmlsuite/menu-item.css dhtmlsuite/menu-bar.css + menu.css )); $_[0]->SUPER::stylesheets; } diff --git a/SL/Layout/None.pm b/SL/Layout/None.pm index 0e65e8acd..ac7d5fcbe 100644 --- a/SL/Layout/None.pm +++ b/SL/Layout/None.pm @@ -9,11 +9,20 @@ sub javascripts_inline { } sub use_javascript { - 'js/common.js' + my $self = shift; + qw( + js/jquery.js + js/common.js + ), + $self->SUPER::use_javascript(@_); } sub use_stylesheet { - 'main.css' + my $self = shift; + qw( + main.css + ), + $self->SUPER::use_stylesheet(@_); } sub _setup_formats { -- 2.20.1