Commit ade1a202 authored by Prayas Jain's avatar Prayas Jain

Added delete functionality

parent c1fa3b8d
...@@ -392,7 +392,6 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -392,7 +392,6 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
} else if ($scope.result == "Error") { } else if ($scope.result == "Error") {
showAlert('Something went wrong while deleting the role.') showAlert('Something went wrong while deleting the role.')
} }
} }
function AddProjectController($scope, $mdDialog, dataToPass, gridOptionsData, managers, $window, $mdSelect) { function AddProjectController($scope, $mdDialog, dataToPass, gridOptionsData, managers, $window, $mdSelect) {
...@@ -1465,7 +1464,6 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1465,7 +1464,6 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
} }
else { else {
updateTeamRecord(record, action,row); updateTeamRecord(record, action,row);
$scope.myForm.$setPristine();
} }
} }
...@@ -1616,8 +1614,6 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1616,8 +1614,6 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
//Startdate: $scope.startDate, //Startdate: $scope.startDate,
Enddate: $scope.endDate Enddate: $scope.endDate
} }
console.log($scope.previousData)
console.log($scope.currentData)
var predata = JSON.stringify($scope.previousData); var predata = JSON.stringify($scope.previousData);
var curdata = JSON.stringify($scope.currentData); var curdata = JSON.stringify($scope.currentData);
if (predata == curdata) { if (predata == curdata) {
...@@ -1839,6 +1835,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor ...@@ -1839,6 +1835,7 @@ myApp.controller("projectController", function ($scope,uiGridConstants, myFactor
row.resourceRole = $scope.parentData.role; row.resourceRole = $scope.parentData.role;
row.billableStatus = $scope.parentData.billableStatus; row.billableStatus = $scope.parentData.billableStatus;
} }
$scope.previousRow = angular.copy(row);
} }
}, function myError(response){ }, function myError(response){
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</div> </div>
<div class="form-group col-lg-9 col-md-9 col-sm-9 col-xs-12"></div> <div class="form-group col-lg-9 col-md-9 col-sm-9 col-xs-12"></div>
<div class="row col-lg-12" style="margin-left: 0px;"> <div class="row col-lg-12 no-padding" style="margin-left: 0px;">
<input type="radio" ng-model="status" value="Active" ng-click="getTeamMates()"> Active <input type="radio" ng-model="status" value="Active" ng-click="getTeamMates()"> Active
<input type="radio" ng-model="status" value="InActive" ng-click="getTeamMates()"> Inactive <input type="radio" ng-model="status" value="InActive" ng-click="getTeamMates()"> Inactive
<input type="radio" ng-model="status" value="Proposed" ng-click="getTeamMates()"> Proposed <input type="radio" ng-model="status" value="Proposed" ng-click="getTeamMates()"> Proposed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment