From bc9a389fd6e65a55732d1b555e89d4e96844fdf1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Wed, 28 Nov 2012 15:33:39 +0100 Subject: [PATCH] =?utf8?q?Pr=C3=A4zedenz=20von=20Layouts=20beim=20Javascri?= =?utf8?q?pt=20einbinden=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit - früher eingebunden = javascripte werden früher geladen. - None ist jetzt das erste Layout das eingebunden wird. --- SL/Layout/Base.pm | 2 +- SL/Layout/Classic.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Layout/Base.pm b/SL/Layout/Base.pm index 83f8ff5ef..cd5ace939 100644 --- a/SL/Layout/Base.pm +++ b/SL/Layout/Base.pm @@ -125,7 +125,7 @@ sub javascripts { my ($self) = @_; return uniq map { $self->_find_javascript($_) } - $self->use_javascript, map { $_->javascripts } $self->sub_layouts; + map({ $_->javascripts } $self->sub_layouts), $self->use_javascript; } sub _find_javascript { diff --git a/SL/Layout/Classic.pm b/SL/Layout/Classic.pm index 9503d05fe..94f12b3d6 100644 --- a/SL/Layout/Classic.pm +++ b/SL/Layout/Classic.pm @@ -9,9 +9,9 @@ use SL::Layout::None; sub init_sub_layouts { [ + SL::Layout::None->new, SL::Layout::Top->new, SL::Layout::MenuLeft->new, - SL::Layout::None->new, ] } -- 2.20.1