From 6da3044f22a497ea42de15f155986aa67816c00e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 24 Mar 2017 15:18:56 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20=C2=BBSystem?= =?utf8?q?=C2=AB=20=E2=86=92=20=C2=BBHistoriensuchmaschine=C2=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/am.pl | 31 +++++++++++++++++++ templates/webpages/common/search_history.html | 7 +---- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 125a10d24..c7fbd469b 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1028,6 +1028,8 @@ sub show_history_search { $main::auth->assert('config'); + setup_am_show_history_search_action_bar(); + $form->{title} = $locale->text("History Search"); $form->header(); @@ -1103,6 +1105,8 @@ sub show_am_history { my ($sort, $sortby) = split(/\-\-/, $form->{order}); $sort =~ s/.*\.(.*)$/$1/; + setup_am_show_am_history_action_bar(); + $form->{title} = $locale->text("History Search"); $form->header(); @@ -1632,3 +1636,30 @@ sub setup_am_audit_control_action_bar { ); } } + +sub setup_am_show_history_search_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Show'), + submit => [ '#form' ], + accesskey => 'enter', + ], + ); + } +} + +sub setup_am_show_am_history_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Back'), + call => [ 'kivi.history_back' ], + ], + ); + } +} diff --git a/templates/webpages/common/search_history.html b/templates/webpages/common/search_history.html index eb8074f95..d345313bd 100644 --- a/templates/webpages/common/search_history.html +++ b/templates/webpages/common/search_history.html @@ -3,7 +3,7 @@ [% USE HTML %]

[% 'history search engine' | $T8 %]

-
+ @@ -67,11 +67,6 @@ - -
- - -