course details changes done

This commit is contained in:
gandhimathi 2017-12-08 10:58:04 +05:30
parent 2bfc38a5c1
commit 4c95229647

View File

@ -7,7 +7,6 @@
app.controller("statusCtrl", ["$scope", "toaster", "$filter", "API_POINTS", "$localStorage", "$http", "$state", function ($scope, toaster, $filter, apiPoint, $localStorage, $http, $state) {
$scope.myModel = {
"StatusID": "",
"StatusName": "",
"switchsetting": true
@ -72,7 +71,6 @@ $scope.statusForm = {
'Content-Type': 'application/json'
},
data: {
statusID: myModel.StatusID,
statusName: myModel.StatusName,
status: myModel.switchsetting,
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID
@ -100,7 +98,6 @@ $scope.statusForm = {
$scope.myModel = angular.copy($scope.master);
form.$setPristine(true);
$scope.myModel = {
"StatusID": "",
"StatusName": "",
"switchsetting": true
};
@ -186,7 +183,7 @@ $scope.statusForm = {
ListCode: myModel.ListCode,
ListName: myModel.ListName,
status: myModel.IsActive,
createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID
updatedBy: JSON.parse(localStorage.getItem('localObj')).localUserID
}
};
$http(update).then(function (response) {