From: Bernd Bleßmann Date: Fri, 28 Jun 2019 14:27:20 +0000 (+0200) Subject: Benutzereinstellungen für Höhe des Scrollbereichs f. Positionen … X-Git-Tag: release-3.5.4~47 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ede5fa54ae485af6edf715f4b3ec71d900f6d9bf;p=kivitendo-erp.git Benutzereinstellungen für Höhe des Scrollbereichs f. Positionen … … im neuen Auftrags-Controller --- diff --git a/SL/AM.pm b/SL/AM.pm index 5db3f71ca..a98101724 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -52,6 +52,7 @@ use SL::DB::Part; use SL::DB::Vendor; use SL::DB; use SL::GenericTranslations; +use SL::Helper::UserPreferences::PositionsScrollbar; use strict; @@ -527,6 +528,10 @@ sub displayable_name_specs_by_module { }; } +sub positions_scrollbar_height { + SL::Helper::UserPreferences::PositionsScrollbar->new()->get_height(); +} + sub save_preferences { $main::lxdebug->enter_sub(); @@ -552,6 +557,10 @@ sub save_preferences { } } + if (exists $form->{positions_scrollbar_height}) { + SL::Helper::UserPreferences::PositionsScrollbar->new()->store_height($form->{positions_scrollbar_height}) + } + $main::lxdebug->leave_sub(); return 1; diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 432eb7b9d..fa7f092af 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -660,6 +660,7 @@ sub config { $form->{default_quick_searchmodules} = \@quick_search_modules; $form->{displayable_name_specs_by_module} = AM->displayable_name_specs_by_module(); + $form->{positions_scrollbar_height} = AM->positions_scrollbar_height(); $myconfig{show_form_details} = 1 unless (defined($myconfig{show_form_details})); $form->{CAN_CHANGE_PASSWORD} = $main::auth->can_change_password(); diff --git a/locale/de/all b/locale/de/all index 10622726c..085c932cd 100755 --- a/locale/de/all +++ b/locale/de/all @@ -2767,6 +2767,7 @@ $self->{texts} = { 'Saving the record template \'#1\' failed.' => 'Das Speichern der Belegvorlage »#1« schlug fehl.', 'Score' => 'Punkte', 'Screen' => 'Bildschirm', + 'Scrollbar height percentage for form postion area (0 means no scrollbar)' => 'Prozentuale Höhe des Scrollbereichs der Positionen in Belegen (0 bedeutet kein Scrollbar)', 'Search' => 'Suchen', 'Search AP Aging' => 'Offene Verbindlichkeiten', 'Search AR Aging' => 'Offene Forderungen', diff --git a/locale/en/all b/locale/en/all index 0865ca922..9a77b733a 100644 --- a/locale/en/all +++ b/locale/en/all @@ -2730,6 +2730,7 @@ $self->{texts} = { 'Saving the record template \'#1\' failed.' => '', 'Score' => '', 'Screen' => '', + 'Scrollbar height percentage for form postion area (0 means no scrollbar)' => '', 'Search' => '', 'Search AP Aging' => '', 'Search AR Aging' => '', diff --git a/templates/webpages/am/config.html b/templates/webpages/am/config.html index f64ce7da4..6f5dea74b 100644 --- a/templates/webpages/am/config.html +++ b/templates/webpages/am/config.html @@ -147,6 +147,15 @@ + [%- IF INSTANCE_CONF.get_feature_experimental_order -%] + + [% 'Scrollbar height percentage for form postion area (0 means no scrollbar)' | $T8 %] + + [% L.input_tag('positions_scrollbar_height', positions_scrollbar_height, size = 5) %] + + + [%- END -%] + [% 'Show custom variable search inputs' | $T8 %]