[open-ils-commits] [GIT] Evergreen ILS branch master updated. bb85fcde6b95fb56dcf59c62f1c29a9aae2bb713

Evergreen Git git at git.evergreen-ils.org
Fri Sep 15 07:16:58 EDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  bb85fcde6b95fb56dcf59c62f1c29a9aae2bb713 (commit)
      from  c0222f5e316b760c48dfc3815f56f4692860c3b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bb85fcde6b95fb56dcf59c62f1c29a9aae2bb713
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date:   Wed Sep 13 15:35:39 2017 -0400

    LP#1716486: fix hotkeys
    
    This fixes a regression on the hotkeys introduced by the offline
    circulation module.
    
    To test
    -------
    [1] Apply the patch and verify that hotkeys in the web staff client
        such as F1, F5, alt-s, and so forth work.
    [2] Go to offline circulation and verify that select hotkeys such as
        F1 and F2 activate corresponding tabs in the offline circulation
        page.
    [3] Repeat step 2 with the browser itself set to offline mode.
    
    Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>

diff --git a/Open-ILS/web/js/ui/default/staff/offline.js b/Open-ILS/web/js/ui/default/staff/offline.js
index 276333d..8c75f14 100644
--- a/Open-ILS/web/js/ui/default/staff/offline.js
+++ b/Open-ILS/web/js/ui/default/staff/offline.js
@@ -464,7 +464,7 @@ function($routeProvider , $locationProvider , $compileProvider) {
         }
 
         $rootScope.save_offline_xacts = function () { return $scope.save() };
-        //$rootScope.active_tab = function (t) { $scope.active_tab = t };
+        $rootScope.active_tab = function (t) { $scope.active_tab = t };
 
         $scope.logout = function () {
             egCore.auth.logout();
diff --git a/Open-ILS/web/js/ui/default/staff/services/navbar.js b/Open-ILS/web/js/ui/default/staff/services/navbar.js
index bae8190..52c916f 100644
--- a/Open-ILS/web/js/ui/default/staff/services/navbar.js
+++ b/Open-ILS/web/js/ui/default/staff/services/navbar.js
@@ -32,14 +32,14 @@ angular.module('egCoreMod')
                             description: desc,
                             callback: function(e) {
                                 e.preventDefault();
-                                if (path) return navTo(path,route);
+                                if (path) return navTo(path);
                                 return $timeout(function(){$(elm).trigger('click')});
                             }
                         });
                     });
                 };
 
-                function inspect(elm) {
+                function find_accesskeys(elm) {
                     elm = angular.element(elm);
                     if (elm.attr('eg-accesskey')) {
                         $scope.addHotkey(
@@ -49,9 +49,8 @@ angular.module('egCoreMod')
                             elm
                         );
                     }
-                    angular.forEach(elm.children(), inspect);
+                    angular.forEach(elm.children(), find_accesskeys);
                 }
-                $timeout(function(){inspect($element)});
 
                 $scope.retrieveLastRecord = function() {
                     var last_record = egCore.hatch.getLocalItem("eg.cat.last_record_retrieved");
@@ -117,6 +116,10 @@ angular.module('egCoreMod')
                                 $scope.showRecentPatrons = val > 1;
                             });
                         }
+                        // need to defer initialization of hotkeys to this point
+                        // as some of them are conditional on whether one is logged in
+                        // or is working in offline circulation mode
+                        $timeout(function(){find_accesskeys($element)});
                     }
                 );
             }

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/js/ui/default/staff/offline.js        |    2 +-
 .../web/js/ui/default/staff/services/navbar.js     |   11 +++++++----
 2 files changed, 8 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list