}])
.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 = {};
$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(
});
});
}
- $scope.ok = function(record) { $modalInstance.close(record) };
- $scope.cancel = function () { $modalInstance.dismiss() }
+ $scope.ok = function(record) { $uibModalInstance.close(record) };
+ $scope.cancel = function () { $uibModalInstance.dismiss() }
}]
});
}
$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;
}
- $modalInstance.close();
+ $uibModalInstance.close();
}
$scope.cancel = function($event) {
- $modalInstance.dismiss();
+ $uibModalInstance.dismiss();
$event.preventDefault();
}
}]
* 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',
}
}
if (args.ok) args.ok();
- $modalInstance.close()
+ $uibModalInstance.close()
}
$scope.cancel = function() {
if (args.cancel) args.cancel();
- $modalInstance.dismiss();
+ $uibModalInstance.dismiss();
}
}
]
* 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) {
}
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();
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();
}
}
]