X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FLayout%2FTop.pm;h=2ae61cb05db457d49175e5fa6e519739a9510009;hb=6c63020409f486043d63c3a324db96a4a162ff67;hp=075e2f2673815255d068f3fc98e1566e159e170f;hpb=980dc53321ae6c2d3e448b6ca2a0c7d11a65ee8c;p=kivitendo-erp.git diff --git a/SL/Layout/Top.pm b/SL/Layout/Top.pm index 075e2f267..2ae61cb05 100644 --- a/SL/Layout/Top.pm +++ b/SL/Layout/Top.pm @@ -3,19 +3,28 @@ package SL::Layout::Top; use strict; use parent qw(SL::Layout::Base); +use SL::Controller::TopQuickSearch; + sub pre_content { my ($self) = @_; - $self->SUPER::render('menu/header', { partial => 1, no_output => 1 }, - now => DateTime->now_local, - is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i), - is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i)); + $self->presenter->render('menu/header', + now => DateTime->now_local, + is_fastcgi => $::dispatcher ? scalar($::dispatcher->interface_type =~ /fastcgi/i) : 0, + is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i), + quick_search => SL::Controller::TopQuickSearch->new, + ); } sub stylesheets { 'frame_header/header.css'; } +sub javascripts { + 'jquery-ui.js', + 'kivi.QuickSearch.js', +} + 1; __END__