From: Bill Erickson Date: Tue, 15 May 2018 19:45:30 +0000 (-0400) Subject: LP#1775466 remove some test cruft X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d54829105d8692476d2d5adc8bfbc8f5a3ecc27c;p=working%2FEvergreen.git LP#1775466 remove some test cruft Signed-off-by: Bill Erickson --- 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 387b27a7e4..a030379e6a 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; @@ -125,10 +106,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); } }