1 angular.module("modalServices",[]).service('modalService', ['$modal', function ($modal) {
2 var ModalInstanceCtrl = function ($scope, $modalInstance, items,$rootScope) {
6 $scope.cancel = function () {
7 $modalInstance.dismiss('cancel');
10 this.errorPopUp = function (msg) {
11 var modalInstance = $modal.open({
12 templateUrl: 'app/fusion/scripts/DS2-modal/error_modal.html',
13 controller: ModalInstanceCtrl,
14 sizeClass: 'modal-small',
22 this.successPopUp = function (msg) {
23 var modalInstance = $modal.open({
24 templateUrl: 'app/fusion/scripts/DS2-modal/success_modal.html',
25 controller: ModalInstanceCtrl,
26 sizeClass: 'modal-small',