LP#1706124: minor tweaks
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 20 Sep 2017 00:45:20 +0000 (20:45 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Wed, 20 Sep 2017 00:45:20 +0000 (20:45 -0400)
- change name of setting to better match local convention
- adjust whitespace

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/web/js/ui/default/staff/services/patron_search.js

index 7897671..758681a 100644 (file)
@@ -745,17 +745,17 @@ function($scope,  $q,  $routeParams,  $timeout,  $window,  $location,  egCore,
     egCore.hatch.getItem('eg.circ.patron.search.show_extras')
     .then(function(val) {$scope.showExtras = val});
 
-// check searchArgs.inactive setting
-    egCore.hatch.getItem('searchArgs.inactive')
+    // check searchArgs.inactive setting
+    egCore.hatch.getItem('eg.circ.patron.search.include_inactive')
                 .then(function(searchInactive){
-                    if (searchInactive) $scope.searchArgs.inactive = searchInactive; 
-                });    
+                    if (searchInactive) $scope.searchArgs.inactive = searchInactive;
+                });
 
-     $scope.onSearchInactiveChanged = function(){
-        egCore.hatch.setItem('searchArgs.inactive', $scope.searchArgs.inactive);
+     $scope.onSearchInactiveChanged = function() {
+        egCore.hatch.setItem('eg.circ.patron.search.include_inactive', $scope.searchArgs.inactive);
     }
 
-// map form arguments into search params
+    // map form arguments into search params
     function compileSearch(args) {
         var search = {};
         angular.forEach(args, function(val, key) {