added notification of successful settings update to patron prefs page
authorBill Erickson <berick@esilibrary.com>
Thu, 9 Jun 2011 20:51:20 +0000 (16:51 -0400)
committerBill Erickson <berick@esilibrary.com>
Thu, 9 Jun 2011 20:51:20 +0000 (16:51 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm
Open-ILS/web/templates/default/opac/myopac/prefs_settings.tt2

index b9c5883..efaeb28 100644 (file)
@@ -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;
 }
 
index 84ef7a8..fda86fe 100644 (file)
@@ -3,6 +3,7 @@
     myopac_page = "prefs_notify";
     prefs_page = 'settings' %]
 
+
     <form method='POST'>
 
         <div style="float:right;width:65px;">
             </div>
         </div>
 
-
         <table class="full-width data_grid" id="acct_search_main">
             <tbody>
+
+                [% IF ctx.updated_user_settings %]
+                <tr><td colspan='2'>
+                    <div class='renew-summary'>
+                        [% l('Account Successfully Updated') %]
+                    </div>
+                </td></tr>
+                [% END %]
+
                 <tr >
                     <td width='20%'>[% l("Search hits per page") %]</td>
                     <td>