course details changes done
This commit is contained in:
parent
2bfc38a5c1
commit
4c95229647
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user