From: Galen Charlton Date: Fri, 5 Aug 2016 15:59:36 +0000 (-0400) Subject: update from $modal to $uibModal X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=09ccdfad2d1f51a4848d5fd049beedec716a6483;p=working%2FEvergreen.git update from $modal to $uibModal Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/web/js/ui/default/staff/admin/local/app.js b/Open-ILS/web/js/ui/default/staff/admin/local/app.js index efad40cb82..bf1eb224e9 100644 --- a/Open-ILS/web/js/ui/default/staff/admin/local/app.js +++ b/Open-ILS/web/js/ui/default/staff/admin/local/app.js @@ -127,8 +127,8 @@ function($scope , $location , egCore , $timeout) { }]) .controller('AutoGridEditorCtl', - ['$scope','$route','$location','egCore','$timeout','egConfirmDialog','$modal', -function($scope , $route , $location , egCore , $timeout , egConfirmDialog , $modal) { + ['$scope','$route','$location','egCore','$timeout','egConfirmDialog','$uibModal', +function($scope , $route , $location , egCore , $timeout , egConfirmDialog , $uibModal) { $scope.funcs = {}; @@ -148,11 +148,11 @@ function($scope , $route , $location , egCore , $timeout , egConfirmDialog , $mo $scope.gridControls.setQuery({id : {'!=' : null}}); function openCreateEditDialog(id) { - return $modal.open({ + return $uibModal.open({ templateUrl : './admin/local/autoGridEditor/' + $scope.baseFmClass, scope : $scope, controller : - ['$scope', '$modalInstance', function($scope, $modalInstance) { + ['$scope', '$uibModalInstance', function($scope, $uibModalInstance) { $scope.creating = id ? false : true; angular.forEach($scope.$parent.createEditPrefetch, function(where, fmClass) { egCore.pcrud.search( @@ -172,8 +172,8 @@ function($scope , $route , $location , egCore , $timeout , egConfirmDialog , $mo }); }); } - $scope.ok = function(record) { $modalInstance.close(record) }; - $scope.cancel = function () { $modalInstance.dismiss() } + $scope.ok = function(record) { $uibModalInstance.close(record) }; + $scope.cancel = function () { $uibModalInstance.dismiss() } }] }); } diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index 9c52ae2539..0711cd88dd 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -1681,12 +1681,12 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , $scope.copy_alerts_dialog = function(copy_list) { if (!angular.isArray(copy_list)) copy_list = [copy_list]; - return $modal.open({ + return $uibModal.open({ templateUrl: './cat/volcopy/t_copy_alerts', animation: true, controller: - ['$scope','$modalInstance', - function($scope , $modalInstance) { + ['$scope','$uibModalInstance', + function($scope , $uibModalInstance) { itemSvc.get_copy_alert_types().then(function(ccat) { $scope.alert_types = ccat; @@ -1736,11 +1736,11 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore , } - $modalInstance.close(); + $uibModalInstance.close(); } $scope.cancel = function($event) { - $modalInstance.dismiss(); + $uibModalInstance.dismiss(); $event.preventDefault(); } }] diff --git a/Open-ILS/web/js/ui/default/staff/services/ui.js b/Open-ILS/web/js/ui/default/staff/services/ui.js index a827d60bed..80243851bb 100644 --- a/Open-ILS/web/js/ui/default/staff/services/ui.js +++ b/Open-ILS/web/js/ui/default/staff/services/ui.js @@ -412,15 +412,15 @@ function($window , egStrings) { * egAddCopyAlertDialog - manage copy alerts */ .factory('egAddCopyAlertDialog', - ['$modal','$interpolate','egCore', -function($modal , $interpolate , egCore) { + ['$uibModal','$interpolate','egCore', +function($uibModal , $interpolate , egCore) { var service = {}; service.open = function(args) { - return $modal.open({ + return $uibModal.open({ templateUrl: './share/t_add_copy_alert_dialog', - controller: ['$scope','$q','$modalInstance', - function( $scope , $q , $modalInstance) { + controller: ['$scope','$q','$uibModalInstance', + function( $scope , $q , $uibModalInstance) { $scope.copy_ids = args.copy_ids; egCore.pcrud.search('ccat', @@ -461,11 +461,11 @@ function($modal , $interpolate , egCore) { } } if (args.ok) args.ok(); - $modalInstance.close() + $uibModalInstance.close() } $scope.cancel = function() { if (args.cancel) args.cancel(); - $modalInstance.dismiss(); + $uibModalInstance.dismiss(); } } ] @@ -479,8 +479,8 @@ function($modal , $interpolate , egCore) { * egCopyAlertManagerDialog - manage copy alerts */ .factory('egCopyAlertManagerDialog', - ['$modal','$interpolate','egCore', -function($modal , $interpolate , egCore) { + ['$uibModal','$interpolate','egCore', +function($uibModal , $interpolate , egCore) { var service = {}; service.get_user_copy_alerts = function(copy_id) { @@ -491,10 +491,10 @@ function($modal , $interpolate , egCore) { } service.open = function(args) { - return $modal.open({ + return $uibModal.open({ templateUrl: './share/t_copy_alert_manager_dialog', - controller: ['$scope','$q','$modalInstance', - function( $scope , $q , $modalInstance) { + controller: ['$scope','$q','$uibModalInstance', + function( $scope , $q , $uibModalInstance) { function init(args) { var defer = $q.defer(); @@ -581,11 +581,11 @@ function($modal , $interpolate , egCore) { egCore.pcrud.apply(acks); } if (args.ok) args.ok($scope.params.the_next_status); - $modalInstance.close() + $uibModalInstance.close() } $scope.cancel = function() { if (args.cancel) args.cancel(); - $modalInstance.dismiss(); + $uibModalInstance.dismiss(); } } ]