Revision 1edebcf0
Von Werner Hahn vor etwa 6 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
656 | 656 |
} |
657 | 657 |
|
658 | 658 |
my $enabled_quick_search = [ SL::Controller::TopQuickSearch->new->available_modules ]; |
659 |
$form->{ENABLED_QUICK_SEARCHMODULES} = \@{$enabled_quick_search};
|
|
660 |
$form->{DEFAULT_QUICK_SEARCHMODULES} = \@quick_search_modules;
|
|
659 |
$form->{enabled_quick_searchmodules} = \@{$enabled_quick_search};
|
|
660 |
$form->{default_quick_searchmodules} = \@quick_search_modules;
|
|
661 | 661 |
|
662 | 662 |
$myconfig{show_form_details} = 1 unless (defined($myconfig{show_form_details})); |
663 | 663 |
$form->{CAN_CHANGE_PASSWORD} = $main::auth->can_change_password(); |
664 | 664 |
$form->{todo_cfg} = { TODO->get_user_config('login' => $::myconfig{login}) }; |
665 | 665 |
|
666 |
$::request->{layout}->use_javascript("jquery.multiselect2side.js"); |
|
666 | 667 |
$form->{title} = $locale->text('Edit Preferences for #1', $::myconfig{login}); |
667 | 668 |
|
668 | 669 |
setup_am_config_action_bar(); |
... | ... | |
686 | 687 |
|
687 | 688 |
TODO->save_user_config('login' => $::myconfig{login}, %{ $form->{todo_cfg} || { } }); |
688 | 689 |
|
689 |
my $user_prefs = SL::Helper::UserPreferences->new( |
|
690 |
namespace => 'TopQuickSearch', |
|
691 |
); |
|
692 |
my $quick_search_modules = join ',', @{$form->{quick_search_modules}}; |
|
693 |
$user_prefs->store('quick_search_modules', $quick_search_modules); |
|
694 |
|
|
690 |
if ($form->{quick_search_modules}) { |
|
691 |
my $user_prefs = SL::Helper::UserPreferences->new( namespace => 'TopQuickSearch',); |
|
692 |
my $quick_search_modules = join ',', @{$form->{quick_search_modules}}; |
|
693 |
$user_prefs->store('quick_search_modules', $quick_search_modules); |
|
694 |
} |
|
695 | 695 |
if (AM->save_preferences($form)) { |
696 | 696 |
if ($::auth->can_change_password() |
697 | 697 |
&& defined $form->{new_password} |
Auch abrufbar als: Unified diff
TopQuickSearch: UserPreferences kleinere Syntaxverbesserungen