From 8924a7a9c41ac473b90b267dd87b5836e8d69c86 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 15 May 2018 15:45:30 -0400 Subject: [PATCH] LP#1775466 remove some test cruft Signed-off-by: Bill Erickson --- .../web/js/ui/default/staff/circ/checkin/app.js | 33 +++++----------------- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js index 626052d460..ef3944f926 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/checkin/app.js @@ -34,27 +34,8 @@ angular.module('egCheckinApp', ['ngRoute', 'ui.bootstrap', * Manages checkin */ .controller('CheckinCtrl', - ['$scope','$q','$window','$location', '$timeout','egCore', - 'checkinSvc','egGridDataProvider','egCirc','egItem','eg2Net', - 'eg2Store','ng2Title', -function($scope , $q , $window , $location , $timeout , egCore , - checkinSvc , egGridDataProvider , egCirc, itemSvc , eg2Net , - eg2Store , ng2Title) { - - // TODO: TESTING - eg2Net.request('open-ils.actor', 'opensrf.system.echo', 'Hello, Ang2') - .subscribe(function(res) {console.log('eg2Net returned ' + res)}); - - ng2Title.setTitle('Checkin'); // TODO: TESTING - - var testDialog = angular.element(document.querySelector('testHello')); - //var testDialog = angular.element(); - //console.log(testDialog); - //console.log(testDialog.controller()); - console.log(testDialog.controller()); - console.log(testDialog.controller('eg2HelloWorld')); - //testDialog.controller('eg2ConfirmDialog').open(); - //testDialog.controller('egConfirmDialog').open(); + ['$scope','$q','$window','$location', '$timeout','egCore','checkinSvc','egGridDataProvider','egCirc', 'egItem', +function($scope , $q , $window , $location , $timeout , egCore , checkinSvc , egGridDataProvider , egCirc, itemSvc) { $scope.focusMe = true; $scope.checkins = checkinSvc.checkins; @@ -68,7 +49,7 @@ function($scope , $q , $window , $location , $timeout , egCore , $scope.grid_persist_key = $scope.is_capture ? 'circ.checkin.capture' : 'circ.checkin.checkin'; - eg2Store.getItem('circ.checkin.strict_barcode') + egCore.hatch.getItem('circ.checkin.strict_barcode') .then(function(sb){ $scope.strict_barcode = sb }); egCore.org.settings([ @@ -108,7 +89,7 @@ function($scope , $q , $window , $location , $timeout , egCore , // set modifiers from stored preferences angular.forEach(modifiers, function(mod) { - eg2Store.getItem('eg.circ.checkin.' + mod) + egCore.hatch.getItem('eg.circ.checkin.' + mod) .then(function(val) { if (val) $scope.modifiers[mod] = true }); }); @@ -117,10 +98,10 @@ function($scope , $q , $window , $location , $timeout , egCore , $scope.toggle_mod = function(mod) { if ($scope.modifiers[mod]) { $scope.modifiers[mod] = false; - eg2Store.removeItem('eg.circ.checkin.' + mod); + egCore.hatch.removeItem('eg.circ.checkin.' + mod); } else { $scope.modifiers[mod] = true; - eg2Store.setItem('eg.circ.checkin.' + mod, true); + egCore.hatch.setItem('eg.circ.checkin.' + mod, true); } } @@ -173,7 +154,7 @@ function($scope , $q , $window , $location , $timeout , egCore , } } - eg2Store.setItem('circ.checkin.strict_barcode', $scope.strict_barcode); + egCore.hatch.setItem('circ.checkin.strict_barcode', $scope.strict_barcode); var options = { check_barcode : $scope.strict_barcode, no_precat_alert : $scope.modifiers.no_precat_alert, -- 2.11.0