alert/messages menu entry
authorBill Erickson <berick@esilibrary.com>
Mon, 12 May 2014 21:20:16 +0000 (17:20 -0400)
committerBill Erickson <berick@esilibrary.com>
Mon, 12 May 2014 21:20:16 +0000 (17:20 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/staff/circ/patron/index.tt2
Open-ILS/web/js/ui/default/staff/circ/patron/app.js

index b7fdbc2..18a0b57 100644 (file)
@@ -67,10 +67,14 @@ angular.module('egCoreMod').run(['egStrings', function(s) {
         <ul class="dropdown-menu">
           <li>
             <a href="./circ/patron/{{patron().id()}}/credentials">
-              <span class="glyphicon glyphicon-ok"></span>
               [% l('Test Password') %]
             </a>
           </li>
+          <li>
+            <a href="./circ/patron/{{patron().id()}}/alerts">
+              [% l('Display Alert and Messages') %]
+            </a>
+          </li>
        </ul>
       </li>
       <li ng-class="{active : tab == 'search'}" class="pull-right">
index 7140993..1526516 100644 (file)
@@ -698,11 +698,11 @@ function($scope,  $routeParams , $location , egCore) {
 .controller('PatronAlertsCtrl',
        ['$scope','$routeParams','$location','egCore','patronSvc',
 function($scope,  $routeParams , $location , egCore , patronSvc) {
-    patronSvc.alertsShown = true;
 
     // called with a patron, pre-populate the form args
     $scope.initTab('other', $routeParams.id).then(
         function() {
+            patronSvc.alertsShown = true;
         }
     );
 }])