From 1e79f43d9eb473bf51ca2d57f50b27d8e22dc31b Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 9 Jun 2011 16:51:20 -0400 Subject: [PATCH] added notification of successful settings update to patron prefs page Signed-off-by: Bill Erickson --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 1 + Open-ILS/web/templates/default/opac/myopac/prefs_settings.tt2 | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index b9c588374a..efaeb28fb5 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -159,6 +159,7 @@ sub load_myopac_prefs_settings { $self->editor->authtoken, undef, \%settings); # re-fetch user prefs + $self->ctx->{updated_user_settings} = \%settings; return $self->_load_user_with_prefs || Apache2::Const::OK; } diff --git a/Open-ILS/web/templates/default/opac/myopac/prefs_settings.tt2 b/Open-ILS/web/templates/default/opac/myopac/prefs_settings.tt2 index 84ef7a8cd4..fda86fe614 100644 --- a/Open-ILS/web/templates/default/opac/myopac/prefs_settings.tt2 +++ b/Open-ILS/web/templates/default/opac/myopac/prefs_settings.tt2 @@ -3,6 +3,7 @@ myopac_page = "prefs_notify"; prefs_page = 'settings' %] +
@@ -13,9 +14,17 @@
- + + [% IF ctx.updated_user_settings %] + + [% END %] +
+
+ [% l('Account Successfully Updated') %] +
+
[% l("Search hits per page") %] -- 2.11.0