Remove alert focusing -- it does not work well enough. Also, remove X close button.
authorMike Rylander <mrylander@gmail.com>
Fri, 2 Sep 2016 18:33:15 +0000 (14:33 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 3 Nov 2017 20:18:55 +0000 (16:18 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/share/t_copy_alert_manager_dialog.tt2
Open-ILS/web/js/ui/default/staff/services/ui.js

index c19f9a2..43ba226 100644 (file)
@@ -3,8 +3,6 @@
 -->
 <div>
   <div class="modal-header">
-    <button type="button" class="close" focus-me="no_statuses"
-      ng-click="cancel()" aria-hidden="true">&times;</button>
     <h4 class="modal-title alert alert-info">[% l('Copy alerts') %]</h4> 
   </div>
   <div class="modal-body">
@@ -33,7 +31,7 @@
             <label for="select-next-status"><b>[% l('Next copy status') %]<b></label>
           </div>
           <div class="col-md-4">
-            <select id="select-next-status" class="form-control" focus-me="has_statuses"
+            <select id="select-next-status" class="form-control"
                     ng-model="params.the_next_status"
                     ng-options="st.id() as st.name() for st in next_statuses">
             </select>
index dc67559..9289122 100644 (file)
@@ -687,8 +687,6 @@ function($uibModal , $interpolate , egCore) {
 
                     var next_statuses = [];
                     var seen_statuses = {};
-                    $scope.has_statuses = false;
-                    $scope.no_statuses = true;
                     $scope.next_statuses = [];
                     $scope.params = {
                         'the_next_status' : null
@@ -707,10 +705,6 @@ function($uibModal , $interpolate , egCore) {
                                     if (!seen_statuses[st]) {
                                         seen_statuses[st] = true;
                                         next_statuses.push(st);
-                                        if (next_statuses.length > 1) {
-                                            $scope.no_statuses = false;
-                                            $scope.has_statuses = true;
-                                        }
                                     }
                                 });
                             }