- function(){
- var uuu = "pdp_Group/remove_pdpFromGroup.htm";
- var postData={data: data,
- activePDP : $scope.selectedPdp};
- $.ajax({
- type : 'POST',
- url : uuu,
- dataType: 'json',
- contentType: 'application/json',
- data: JSON.stringify(postData),
- success : function(data){
- $scope.$apply(function(){$scope.data=data.data;});
- Notification.success("PDP Group Deleted Successfully");
- },
- error : function(data){
- console.log(data);
- Notification.error("Error Occured While Deleting a PDP Group")
- //modalService.showFailure("Fail","Error while deleting: "+ data.responseText);
- }
- });
-
- })
+ function(){
+ var uuu = "pdp_Group/remove_pdpFromGroup.htm";
+ var postData={data: data,
+ activePDP : $scope.selectedPdp};
+ $.ajax({
+ type : 'POST',
+ url : uuu,
+ dataType: 'json',
+ contentType: 'application/json',
+ data: JSON.stringify(postData),
+ success : function(data){
+ $scope.$apply(function(){
+ refreshPDPGroupDatas(data);
+ });
+ Notification.success("PDP Group Deleted Successfully");
+ },
+ error : function(data){
+ console.log(data);
+ Notification.error("Error Occured While Deleting a PDP Group");
+ }
+ });
+ })